diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2012-12-13 02:38:53 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-12-19 03:50:42 +0100 |
commit | b30177d961387744a9aa36b05bcb102a5de47343 (patch) | |
tree | 1b5bee31f0360f458775b5fea0a933d3cee65711 /gdbus/gdbus.h | |
parent | 8d5bb26e4356ac055691b2267e0f1ed2bb81df4c (diff) | |
download | ofono-b30177d961387744a9aa36b05bcb102a5de47343.tar.bz2 |
gdbus: Add support for D-Bus client proxies
Diffstat (limited to 'gdbus/gdbus.h')
-rw-r--r-- | gdbus/gdbus.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gdbus/gdbus.h b/gdbus/gdbus.h index cd7ac25b..3eed52b8 100644 --- a/gdbus/gdbus.h +++ b/gdbus/gdbus.h @@ -268,6 +268,14 @@ gboolean g_dbus_get_properties(DBusConnection *connection, const char *path, gboolean g_dbus_attach_object_manager(DBusConnection *connection); gboolean g_dbus_detach_object_manager(DBusConnection *connection); +typedef struct GDBusProxy GDBusProxy; + +GDBusProxy *g_dbus_proxy_ref(GDBusProxy *proxy); +void g_dbus_proxy_unref(GDBusProxy *proxy); + +const char *g_dbus_proxy_get_path(GDBusProxy *proxy); +const char *g_dbus_proxy_get_interface(GDBusProxy *proxy); + typedef struct GDBusClient GDBusClient; GDBusClient *g_dbus_client_new(DBusConnection *connection, @@ -283,6 +291,12 @@ gboolean g_dbus_client_set_disconnect_watch(GDBusClient *client, gboolean g_dbus_client_set_signal_watch(GDBusClient *client, GDBusMessageFunction function, void *user_data); +typedef void (* GDBusProxyFunction) (GDBusProxy *proxy, void *user_data); + +gboolean g_dbus_client_set_proxy_handlers(GDBusClient *client, + GDBusProxyFunction added, + GDBusProxyFunction removed, void *user_data); + #ifdef __cplusplus } #endif |