Drop GApplication, fix D-Bus activation, further NSM integration work
[profile/ivi/node-startup-controller.git] / nsm-dummy / nsm-dummy-application.h
1 /* vi:set et ai sw=2 sts=2 ts=2: */
2 /* -
3  * Copyright (c) 2012 GENIVI.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  */
9
10 #ifndef __NSM_DUMMY_APPLICATION_H__
11 #define __NSM_DUMMY_APPLICATION_H__
12
13 #include <nsm-dummy/nsm-consumer-service.h>
14 #include <nsm-dummy/nsm-lifecycle-control-service.h>
15
16 G_BEGIN_DECLS
17
18 #define NSM_DUMMY_TYPE_APPLICATION            (nsm_dummy_application_get_type ())
19 #define NSM_DUMMY_APPLICATION(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), NSM_DUMMY_TYPE_APPLICATION, NSMDummyApplication))
20 #define NSM_DUMMY_APPLICATION_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), NSM_DUMMY_TYPE_APPLICATION, NSMDummyApplicationClass))
21 #define NSM_DUMMY_IS_APPLICATION(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NSM_DUMMY_TYPE_APPLICATION))
22 #define NSM_DUMMY_IS_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NSM_DUMMY_TYPE_APPLICATION)
23 #define NSM_DUMMY_APPLICATION_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), NSM_DUMMY_TYPE_APPLICATION, NSMDummyApplicationClass))
24
25 typedef struct _NSMDummyApplicationClass NSMDummyApplicationClass;
26 typedef struct _NSMDummyApplication      NSMDummyApplication;
27
28 GType                nsm_dummy_application_get_type (void) G_GNUC_CONST;
29
30 NSMDummyApplication *nsm_dummy_application_new      (GMainLoop                  *main_loop,
31                                                      GDBusConnection            *connection,
32                                                      NSMConsumerService         *consumer_service,
33                                                      NSMLifecycleControlService *lifecycle_control_service) G_GNUC_MALLOC G_GNUC_WARN_UNUSED_RESULT;
34
35 G_END_DECLS
36
37 #endif /* !__NSM_DUMMY_APPLICATION_H__ */