handsfree-audio: Don't hardcode '/' path

Use OFONO_MANAGER_PATH instead
This commit is contained in:
Denis Kenzior 2013-02-26 14:01:47 -06:00
parent d15e22ab6d
commit b179adf879
1 changed files with 5 additions and 3 deletions

View File

@ -215,7 +215,8 @@ void ofono_handsfree_audio_ref(void)
return;
if (!g_dbus_register_interface(ofono_dbus_get_connection(),
"/", HFP_AUDIO_MANAGER_INTERFACE,
OFONO_MANAGER_PATH,
HFP_AUDIO_MANAGER_INTERFACE,
am_methods, NULL, NULL, NULL, NULL))
ofono_error("Unable to register Handsfree Audio Manager");
}
@ -232,8 +233,9 @@ void ofono_handsfree_audio_unref(void)
if (ref_count > 0)
return;
g_dbus_unregister_interface(ofono_dbus_get_connection(), "/",
HFP_AUDIO_MANAGER_INTERFACE);
g_dbus_unregister_interface(ofono_dbus_get_connection(),
OFONO_MANAGER_PATH,
HFP_AUDIO_MANAGER_INTERFACE);
if (agent) {
agent_release(agent);