Drop GApplication, fix D-Bus activation, further NSM integration work
[profile/ivi/node-startup-controller.git] / nsm-dummy / nsm-consumer-service.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_CONSUMER_SERVICE_H__
11 #define __NSM_CONSUMER_SERVICE_H__
12
13 #include <gio/gio.h>
14
15 G_BEGIN_DECLS
16
17 #define NSM_CONSUMER_TYPE_SERVICE            (nsm_consumer_service_get_type ())
18 #define NSM_CONSUMER_SERVICE(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), NSM_CONSUMER_TYPE_SERVICE, NSMConsumerService))
19 #define NSM_CONSUMER_SERVICE_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), NSM_CONSUMER_TYPE_SERVICE, NSMConsumerServiceClass))
20 #define NSM_CONSUMER_IS_SERVICE(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NSM_CONSUMER_TYPE_SERVICE))
21 #define NSM_CONSUMER_IS_SERVICE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NSM_CONSUMER_TYPE_SERVICE)
22 #define NSM_CONSUMER_SERVICE_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), NSM_CONSUMER_TYPE_SERVICE, NSMConsumerServiceClass))
23
24 typedef struct _NSMConsumerServiceClass NSMConsumerServiceClass;
25 typedef struct _NSMConsumerService      NSMConsumerService;
26
27 GType               nsm_consumer_service_get_type           (void) G_GNUC_CONST;
28
29 NSMConsumerService *nsm_consumer_service_new                (GDBusConnection    *connection) G_GNUC_MALLOC G_GNUC_WARN_UNUSED_RESULT;
30 gboolean            nsm_consumer_service_start              (NSMConsumerService *service,
31                                                              GError            **error);
32 void                nsm_consumer_service_shutdown_consumers (NSMConsumerService *service);
33
34 G_END_DECLS
35
36 #endif /* !__NSM_CONSUMER_SERVICE_H__ */