Commit b73ed396 authored by Alexandre Savard's avatar Alexandre Savard

Test client dbus connection to a fixed owner

parent 58280d6e
......@@ -215,10 +215,11 @@ dbus_connect ()
/* 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/Instance",
"org.sflphone.SFLphone.Instance");
"org.sflphone.SFLphone.Instance",
&error);
if (instanceProxy==NULL)
{
......@@ -229,10 +230,11 @@ dbus_connect ()
DEBUG ("DBus connected to Instance");
callManagerProxy = dbus_g_proxy_new_for_name (connection,
callManagerProxy = dbus_g_proxy_new_for_name_owner (connection,
"org.sflphone.SFLphone",
"/org/sflphone/SFLphone/CallManager",
"org.sflphone.SFLphone.CallManager");
"org.sflphone.SFLphone.CallManager",
&error);
if (callManagerProxy==NULL)
{
......@@ -284,10 +286,11 @@ dbus_connect ()
dbus_g_proxy_connect_signal (callManagerProxy,
"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/ConfigurationManager",
"org.sflphone.SFLphone.ConfigurationManager");
"org.sflphone.SFLphone.ConfigurationManager",
&error);
if (!configurationManagerProxy)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment