summaryrefslogtreecommitdiffstats
path: root/src/handsfree-audio.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2013-02-26 14:01:47 -0600
committerDenis Kenzior <denkenz@gmail.com>2013-02-26 14:14:46 -0600
commitb179adf879db9b851c38591bc124ac77f34d1a6c (patch)
tree84ed6fbbe2e2753a32ab6a98f9e72bb75a81c5f7 /src/handsfree-audio.c
parentd15e22ab6d2f1af6c3496a04b5433d0afbbf4723 (diff)
downloadofono-b179adf879db9b851c38591bc124ac77f34d1a6c.tar.bz2
handsfree-audio: Don't hardcode '/' path
Use OFONO_MANAGER_PATH instead
Diffstat (limited to 'src/handsfree-audio.c')
-rw-r--r--src/handsfree-audio.c8
1 files changed, 5 insertions, 3 deletions
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);