From b179adf879db9b851c38591bc124ac77f34d1a6c Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 26 Feb 2013 14:01:47 -0600 Subject: handsfree-audio: Don't hardcode '/' path Use OFONO_MANAGER_PATH instead --- src/handsfree-audio.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/handsfree-audio.c b/src/handsfree-audio.c index 66d9bb02..456d699e 100644 --- a/src/handsfree-audio.c +++ b/src/handsfree-audio.c @@ -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); -- cgit v1.2.3