Skip to content
Snippets Groups Projects
Commit 6435cce9 authored by Emmanuel Milou's avatar Emmanuel Milou
Browse files

Bind the proxies to the unique name of the current owner

parent f09f2801
No related branches found
No related tags found
No related merge requests found
...@@ -193,10 +193,11 @@ dbus_connect () ...@@ -193,10 +193,11 @@ dbus_connect ()
/* Create a proxy object for the "bus driver" (name "org.freedesktop.DBus") */ /* Create a proxy object for the "bus driver" (name "org.freedesktop.DBus") */
instanceProxy = dbus_g_proxy_new_for_name (connection, instanceProxy = dbus_g_proxy_new_for_name_owner (connection,
"org.sflphone.SFLphone", "org.sflphone.SFLphone",
"/org/sflphone/SFLphone/Instance", "/org/sflphone/SFLphone/Instance",
"org.sflphone.SFLphone.Instance"); "org.sflphone.SFLphone.Instance",
&error);
if (!instanceProxy) if (!instanceProxy)
{ {
g_printerr ("Failed to get proxy to Instance\n"); g_printerr ("Failed to get proxy to Instance\n");
...@@ -206,10 +207,11 @@ dbus_connect () ...@@ -206,10 +207,11 @@ dbus_connect ()
g_print ("DBus connected to Instance\n"); g_print ("DBus connected to Instance\n");
callManagerProxy = dbus_g_proxy_new_for_name (connection, callManagerProxy = dbus_g_proxy_new_for_name_owner (connection,
"org.sflphone.SFLphone", "org.sflphone.SFLphone",
"/org/sflphone/SFLphone/CallManager", "/org/sflphone/SFLphone/CallManager",
"org.sflphone.SFLphone.CallManager"); "org.sflphone.SFLphone.CallManager",
&error);
if (!callManagerProxy) if (!callManagerProxy)
{ {
g_printerr ("Failed to get proxy to CallManagers\n"); g_printerr ("Failed to get proxy to CallManagers\n");
...@@ -252,10 +254,11 @@ dbus_connect () ...@@ -252,10 +254,11 @@ dbus_connect ()
dbus_g_proxy_connect_signal (callManagerProxy, dbus_g_proxy_connect_signal (callManagerProxy,
"volumeChanged", G_CALLBACK(volume_changed_cb), NULL, NULL); "volumeChanged", G_CALLBACK(volume_changed_cb), NULL, NULL);
configurationManagerProxy = dbus_g_proxy_new_for_name (connection, configurationManagerProxy = dbus_g_proxy_new_for_name_owner (connection,
"org.sflphone.SFLphone", "org.sflphone.SFLphone",
"/org/sflphone/SFLphone/ConfigurationManager", "/org/sflphone/SFLphone/ConfigurationManager",
"org.sflphone.SFLphone.ConfigurationManager"); "org.sflphone.SFLphone.ConfigurationManager",
&error);
if (!configurationManagerProxy) if (!configurationManagerProxy)
{ {
g_printerr ("Failed to get proxy to ConfigurationManager\n"); g_printerr ("Failed to get proxy to ConfigurationManager\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment