1/* GDBus - GLib D-Bus Library
2 *
3 * Copyright (C) 2008-2010 Red Hat, Inc.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General
16 * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
17 *
18 * Author: David Zeuthen <davidz@redhat.com>
19 */
20
21#ifndef __G_DBUS_OBJECT_MANAGER_CLIENT_H__
22#define __G_DBUS_OBJECT_MANAGER_CLIENT_H__
23
24#include <gio/giotypes.h>
25
26G_BEGIN_DECLS
27
28#define G_TYPE_DBUS_OBJECT_MANAGER_CLIENT (g_dbus_object_manager_client_get_type ())
29#define G_DBUS_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_DBUS_OBJECT_MANAGER_CLIENT, GDBusObjectManagerClient))
30#define G_DBUS_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_DBUS_OBJECT_MANAGER_CLIENT, GDBusObjectManagerClientClass))
31#define G_DBUS_OBJECT_MANAGER_CLIENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_DBUS_OBJECT_MANAGER_CLIENT, GDBusObjectManagerClientClass))
32#define G_IS_DBUS_OBJECT_MANAGER_CLIENT(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_DBUS_OBJECT_MANAGER_CLIENT))
33#define G_IS_DBUS_OBJECT_MANAGER_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_DBUS_OBJECT_MANAGER_CLIENT))
34
35typedef struct _GDBusObjectManagerClientClass GDBusObjectManagerClientClass;
36typedef struct _GDBusObjectManagerClientPrivate GDBusObjectManagerClientPrivate;
37
38/**
39 * GDBusObjectManagerClient:
40 *
41 * The #GDBusObjectManagerClient structure contains private data and should
42 * only be accessed using the provided API.
43 *
44 * Since: 2.30
45 */
46struct _GDBusObjectManagerClient
47{
48 /*< private >*/
49 GObject parent_instance;
50 GDBusObjectManagerClientPrivate *priv;
51};
52
53/**
54 * GDBusObjectManagerClientClass:
55 * @parent_class: The parent class.
56 * @interface_proxy_signal: Signal class handler for the #GDBusObjectManagerClient::interface-proxy-signal signal.
57 * @interface_proxy_properties_changed: Signal class handler for the #GDBusObjectManagerClient::interface-proxy-properties-changed signal.
58 *
59 * Class structure for #GDBusObjectManagerClient.
60 *
61 * Since: 2.30
62 */
63struct _GDBusObjectManagerClientClass
64{
65 GObjectClass parent_class;
66
67 /* signals */
68 void (*interface_proxy_signal) (GDBusObjectManagerClient *manager,
69 GDBusObjectProxy *object_proxy,
70 GDBusProxy *interface_proxy,
71 const gchar *sender_name,
72 const gchar *signal_name,
73 GVariant *parameters);
74
75 void (*interface_proxy_properties_changed) (GDBusObjectManagerClient *manager,
76 GDBusObjectProxy *object_proxy,
77 GDBusProxy *interface_proxy,
78 GVariant *changed_properties,
79 const gchar* const *invalidated_properties);
80
81 /*< private >*/
82 gpointer padding[8];
83};
84
85GLIB_AVAILABLE_IN_ALL
86GType g_dbus_object_manager_client_get_type (void) G_GNUC_CONST;
87GLIB_AVAILABLE_IN_ALL
88void g_dbus_object_manager_client_new (GDBusConnection *connection,
89 GDBusObjectManagerClientFlags flags,
90 const gchar *name,
91 const gchar *object_path,
92 GDBusProxyTypeFunc get_proxy_type_func,
93 gpointer get_proxy_type_user_data,
94 GDestroyNotify get_proxy_type_destroy_notify,
95 GCancellable *cancellable,
96 GAsyncReadyCallback callback,
97 gpointer user_data);
98GLIB_AVAILABLE_IN_ALL
99GDBusObjectManager *g_dbus_object_manager_client_new_finish (GAsyncResult *res,
100 GError **error);
101GLIB_AVAILABLE_IN_ALL
102GDBusObjectManager *g_dbus_object_manager_client_new_sync (GDBusConnection *connection,
103 GDBusObjectManagerClientFlags flags,
104 const gchar *name,
105 const gchar *object_path,
106 GDBusProxyTypeFunc get_proxy_type_func,
107 gpointer get_proxy_type_user_data,
108 GDestroyNotify get_proxy_type_destroy_notify,
109 GCancellable *cancellable,
110 GError **error);
111GLIB_AVAILABLE_IN_ALL
112void g_dbus_object_manager_client_new_for_bus (GBusType bus_type,
113 GDBusObjectManagerClientFlags flags,
114 const gchar *name,
115 const gchar *object_path,
116 GDBusProxyTypeFunc get_proxy_type_func,
117 gpointer get_proxy_type_user_data,
118 GDestroyNotify get_proxy_type_destroy_notify,
119 GCancellable *cancellable,
120 GAsyncReadyCallback callback,
121 gpointer user_data);
122GLIB_AVAILABLE_IN_ALL
123GDBusObjectManager *g_dbus_object_manager_client_new_for_bus_finish (GAsyncResult *res,
124 GError **error);
125GLIB_AVAILABLE_IN_ALL
126GDBusObjectManager *g_dbus_object_manager_client_new_for_bus_sync (GBusType bus_type,
127 GDBusObjectManagerClientFlags flags,
128 const gchar *name,
129 const gchar *object_path,
130 GDBusProxyTypeFunc get_proxy_type_func,
131 gpointer get_proxy_type_user_data,
132 GDestroyNotify get_proxy_type_destroy_notify,
133 GCancellable *cancellable,
134 GError **error);
135GLIB_AVAILABLE_IN_ALL
136GDBusConnection *g_dbus_object_manager_client_get_connection (GDBusObjectManagerClient *manager);
137GLIB_AVAILABLE_IN_ALL
138GDBusObjectManagerClientFlags g_dbus_object_manager_client_get_flags (GDBusObjectManagerClient *manager);
139GLIB_AVAILABLE_IN_ALL
140const gchar *g_dbus_object_manager_client_get_name (GDBusObjectManagerClient *manager);
141GLIB_AVAILABLE_IN_ALL
142gchar *g_dbus_object_manager_client_get_name_owner (GDBusObjectManagerClient *manager);
143
144G_END_DECLS
145
146#endif /* __G_DBUS_OBJECT_MANAGER_CLIENT_H */
147

source code of include/glib-2.0/gio/gdbusobjectmanagerclient.h