Debian Codegraph @

src/gclue-service-manager.h

raw symbols SCIP
1 /* vim: set et ts=8 sw=8: */
2 /* gclue-service-manager.h
3 *
4 * Copyright 2013 Red Hat, Inc.
5 *
6 * Geoclue is free software; you can redistribute it and/or modify it under
7 * the terms of the GNU General Public License as published by the Free
8 * Software Foundation; either version 2 of the License, or (at your option)
9 * any later version.
10 *
11 * Geoclue is distributed in the hope that it will be useful, but WITHOUT ANY
12 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14 * details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with Geoclue; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 *
20 * Author: Zeeshan Ali (Khattak) <[email protected]>
21 */
22
23 #ifndef GCLUE_SERVICE_MANAGER_H
24 #define GCLUE_SERVICE_MANAGER_H
25
26 #include <glib-object.h>
27 #include "gclue-manager-interface.h"
28
29 G_BEGIN_DECLS
30
31 #define GCLUE_TYPE_SERVICE_MANAGER (gclue_service_manager_get_type())
32 #define GCLUE_SERVICE_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GCLUE_TYPE_SERVICE_MANAGER, GClueServiceManager))
33 #define GCLUE_SERVICE_MANAGER_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GCLUE_TYPE_SERVICE_MANAGER, GClueServiceManager const))
34 #define GCLUE_SERVICE_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GCLUE_TYPE_SERVICE_MANAGER, GClueServiceManagerClass))
35 #define GCLUE_IS_SERVICE_MANAGER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GCLUE_TYPE_SERVICE_MANAGER))
36 #define GCLUE_IS_SERVICE_MANAGER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GCLUE_TYPE_SERVICE_MANAGER))
37 #define GCLUE_SERVICE_MANAGER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GCLUE_TYPE_SERVICE_MANAGER, GClueServiceManagerClass))
38
39 typedef struct _GClueServiceManager GClueServiceManager;
40 typedef struct _GClueServiceManagerClass GClueServiceManagerClass;
41 typedef struct _GClueServiceManagerPrivate GClueServiceManagerPrivate;
42
43 struct _GClueServiceManager
44 {
45 GClueDBusManagerSkeleton parent;
46
47 /*< private >*/
48 GClueServiceManagerPrivate *priv;
49 };
50
51 struct _GClueServiceManagerClass
52 {
53 GClueDBusManagerSkeletonClass parent_class;
54 };
55
56 GType gclue_service_manager_get_type (void) G_GNUC_CONST;
57
58 GClueServiceManager * gclue_service_manager_new (GDBusConnection *connection,
59 GError **error);
60 gboolean gclue_service_manager_get_active (GClueServiceManager *manager);
61
62 G_END_DECLS
63
64 #endif /* GCLUE_SERVICE_MANAGER_H */