Debian Codegraph @

src/gclue-service-client.h

raw symbols SCIP
1 /* vim: set et ts=8 sw=8: */
2 /* gclue-service-client.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_CLIENT_H
24 #define GCLUE_SERVICE_CLIENT_H
25
26 #include <glib-object.h>
27 #include "gclue-client-interface.h"
28 #include "geoclue-agent-interface.h"
29 #include "gclue-client-info.h"
30
31 G_BEGIN_DECLS
32
33 #define GCLUE_TYPE_SERVICE_CLIENT (gclue_service_client_get_type())
34 #define GCLUE_SERVICE_CLIENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GCLUE_TYPE_SERVICE_CLIENT, GClueServiceClient))
35 #define GCLUE_SERVICE_CLIENT_CONST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GCLUE_TYPE_SERVICE_CLIENT, GClueServiceClient const))
36 #define GCLUE_SERVICE_CLIENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GCLUE_TYPE_SERVICE_CLIENT, GClueServiceClientClass))
37 #define GCLUE_IS_SERVICE_CLIENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GCLUE_TYPE_SERVICE_CLIENT))
38 #define GCLUE_IS_SERVICE_CLIENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GCLUE_TYPE_SERVICE_CLIENT))
39 #define GCLUE_SERVICE_CLIENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GCLUE_TYPE_SERVICE_CLIENT, GClueServiceClientClass))
40
41 typedef struct _GClueServiceClient GClueServiceClient;
42 typedef struct _GClueServiceClientClass GClueServiceClientClass;
43 typedef struct _GClueServiceClientPrivate GClueServiceClientPrivate;
44
45 struct _GClueServiceClient
46 {
47 GClueDBusClientSkeleton parent;
48
49 /*< private >*/
50 GClueServiceClientPrivate *priv;
51 };
52
53 struct _GClueServiceClientClass
54 {
55 GClueDBusClientSkeletonClass parent_class;
56 };
57
58 GType gclue_service_client_get_type (void) G_GNUC_CONST;
59
60 GClueServiceClient * gclue_service_client_new (GClueClientInfo *info,
61 const char *path,
62 GDBusConnection *connection,
63 GClueAgent *agent_proxy,
64 GError **error);
65 const char * gclue_service_client_get_path (GClueServiceClient *client);
66 GClueClientInfo * gclue_service_client_get_client_info (GClueServiceClient *client);
67
68 G_END_DECLS
69
70 #endif /* GCLUE_SERVICE_CLIENT_H */