diff options
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 |