diff options
author | Arman Uguray <armansito@chromium.org> | 2015-02-27 00:16:25 -0800 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-03-26 10:02:05 +0100 |
commit | 97ac3f7c769b2a6c982a0889475e0c76296c383f (patch) | |
tree | d963c499efa69edbae58bcab84b8bd479c951cba /gdbus/gdbus.h | |
parent | 26a00f2f31225b9ec8564a9fc6c3987480e47e36 (diff) | |
download | ofono-97ac3f7c769b2a6c982a0889475e0c76296c383f.tar.bz2 |
gdbus/client: Allow specifying ObjectManager path
GDBusClient currently hard-codes "/" as the remote ObjectManager path.
This is generally incorrect, as an application can choose to expose an
ObjectManager at any well-known path. This patch fixes this by allowing
the user to pass in the ObjectManager path by introducing a new
conctructor "g_dbus_client_new_full".
Diffstat (limited to 'gdbus/gdbus.h')
-rw-r--r-- | gdbus/gdbus.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdbus/gdbus.h b/gdbus/gdbus.h index 551c306a..98148386 100644 --- a/gdbus/gdbus.h +++ b/gdbus/gdbus.h @@ -355,6 +355,10 @@ gboolean g_dbus_proxy_set_removed_watch(GDBusProxy *proxy, GDBusClient *g_dbus_client_new(DBusConnection *connection, const char *service, const char *path); +GDBusClient *g_dbus_client_new_full(DBusConnection *connection, + const char *service, + const char *path, + const char *root_path); GDBusClient *g_dbus_client_ref(GDBusClient *client); void g_dbus_client_unref(GDBusClient *client); |