summaryrefslogtreecommitdiff
path: root/nsm-dummy/nsm-dummy-application.h
blob: e6bfed2fd2e1b219a41bb52f9fde6e5db1062aba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/* vi:set et ai sw=2 sts=2 ts=2: */
/* -
 * Copyright (c) 2012 GENIVI.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */

#ifndef __NSM_DUMMY_APPLICATION_H__
#define __NSM_DUMMY_APPLICATION_H__

#include <nsm-dummy/nsm-consumer-service.h>
#include <nsm-dummy/nsm-lifecycle-control-service.h>

G_BEGIN_DECLS

#define NSM_DUMMY_TYPE_APPLICATION            (nsm_dummy_application_get_type ())
#define NSM_DUMMY_APPLICATION(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), NSM_DUMMY_TYPE_APPLICATION, NSMDummyApplication))
#define NSM_DUMMY_APPLICATION_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), NSM_DUMMY_TYPE_APPLICATION, NSMDummyApplicationClass))
#define NSM_DUMMY_IS_APPLICATION(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NSM_DUMMY_TYPE_APPLICATION))
#define NSM_DUMMY_IS_APPLICATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), NSM_DUMMY_TYPE_APPLICATION)
#define NSM_DUMMY_APPLICATION_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), NSM_DUMMY_TYPE_APPLICATION, NSMDummyApplicationClass))

typedef struct _NSMDummyApplicationClass NSMDummyApplicationClass;
typedef struct _NSMDummyApplication      NSMDummyApplication;

GType                nsm_dummy_application_get_type (void) G_GNUC_CONST;

NSMDummyApplication *nsm_dummy_application_new      (GMainLoop                  *main_loop,
                                                     GDBusConnection            *connection,
                                                     NSMConsumerService         *consumer_service,
                                                     NSMLifecycleControlService *lifecycle_control_service) G_GNUC_MALLOC G_GNUC_WARN_UNUSED_RESULT;

G_END_DECLS

#endif /* !__NSM_DUMMY_APPLICATION_H__ */