From 8bef871cffd92cde21f9c727329740ee1e3b6d3d Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 27 Dec 2012 21:19:31 -0800 Subject: gdbus: Add support for creating D-Bus proxies without object manager --- gdbus/gdbus.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gdbus/gdbus.h') diff --git a/gdbus/gdbus.h b/gdbus/gdbus.h index 0e5c0126..4caa31da 100644 --- a/gdbus/gdbus.h +++ b/gdbus/gdbus.h @@ -274,8 +274,12 @@ 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 GDBusClient GDBusClient; typedef struct GDBusProxy GDBusProxy; +GDBusProxy *g_dbus_proxy_new(GDBusClient *client, const char *path, + const char *interface); + GDBusProxy *g_dbus_proxy_ref(GDBusProxy *proxy); void g_dbus_proxy_unref(GDBusProxy *proxy); @@ -300,8 +304,6 @@ gboolean g_dbus_proxy_method_call(GDBusProxy *proxy, const char *method, GDBusReturnFunction function, void *user_data, GDBusDestroyFunction destroy); -typedef struct GDBusClient GDBusClient; - GDBusClient *g_dbus_client_new(DBusConnection *connection, const char *service, const char *path); -- cgit v1.2.3