diff options
author | Paulo Borges <paulo.borges@openbossa.org> | 2013-02-27 18:49:13 -0300 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2013-03-01 13:22:35 -0600 |
commit | 80212a3db2d5a0b1cccb84ae183a917175d34a8a (patch) | |
tree | f6d27f9c19241cbe3df0c30a7170ddebe86aba36 /plugins/bluez5.c | |
parent | cf6137c1872e7f0b00f2ed5c27c7f35dff083d80 (diff) | |
download | ofono-80212a3db2d5a0b1cccb84ae183a917175d34a8a.tar.bz2 |
bluez5: Move ref / unref handsfree audio
This commit moves the ref / unref to hfp_hf_bluez5 to make
bluez5 more generic and reusable.
Diffstat (limited to 'plugins/bluez5.c')
-rw-r--r-- | plugins/bluez5.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/plugins/bluez5.c b/plugins/bluez5.c index 788f3a25..9233a2b2 100644 --- a/plugins/bluez5.c +++ b/plugins/bluez5.c @@ -35,7 +35,6 @@ #include <ofono/dbus.h> #include <ofono/plugin.h> #include <ofono/log.h> -#include <ofono/handsfree-audio.h> #include <gdbus/gdbus.h> #include "bluez5.h" @@ -257,17 +256,5 @@ void bt_disconnect_profile(DBusConnection *conn, cb, user_data); } -static int bluez5_init(void) -{ - ofono_handsfree_audio_ref(); - - return 0; -} - -static void bluez5_exit(void) -{ - ofono_handsfree_audio_unref(); -} - OFONO_PLUGIN_DEFINE(bluez5, "BlueZ 5 Utils Plugin", VERSION, - OFONO_PLUGIN_PRIORITY_DEFAULT, bluez5_init, bluez5_exit) + OFONO_PLUGIN_PRIORITY_DEFAULT, NULL, NULL) |