diff options
author | David Henningsson <david.henningsson@canonical.com> | 2014-11-10 16:13:13 +0100 |
---|---|---|
committer | David Henningsson <david.henningsson@canonical.com> | 2014-11-14 11:44:33 +0100 |
commit | 9ae85b1a29b5b9a0637a0f755457f749a141c920 (patch) | |
tree | 513ca6290f6313304288b325d1a7bd3ba7fae730 /src/modules/bluetooth/bluez5-util.h | |
parent | d63305f10336e4eada275e024343a84689ecb24b (diff) | |
download | pulseaudio-9ae85b1a29b5b9a0637a0f755457f749a141c920.tar.gz |
bluetooth: Select headset backend through module argument
This patch adds a module argument "headset=ofono|native|auto" to
module-bluetooth-discover and module-bluez5-discover.
To make Arun's happy, the default is 'native' if compiled in, otherwise
'ofono'. 'Auto' will try to autoswitch depending on whether ofono is
running or not.
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Diffstat (limited to 'src/modules/bluetooth/bluez5-util.h')
-rw-r--r-- | src/modules/bluetooth/bluez5-util.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/modules/bluetooth/bluez5-util.h b/src/modules/bluetooth/bluez5-util.h index 21f56b262..9a6488d14 100644 --- a/src/modules/bluetooth/bluez5-util.h +++ b/src/modules/bluetooth/bluez5-util.h @@ -154,7 +154,11 @@ pa_hook* pa_bluetooth_discovery_hook(pa_bluetooth_discovery *y, pa_bluetooth_hoo const char *pa_bluetooth_profile_to_string(pa_bluetooth_profile_t profile); -pa_bluetooth_discovery* pa_bluetooth_discovery_get(pa_core *core); +#define HEADSET_BACKEND_OFONO 0 +#define HEADSET_BACKEND_NATIVE 1 +#define HEADSET_BACKEND_AUTO 2 + +pa_bluetooth_discovery* pa_bluetooth_discovery_get(pa_core *core, int headset_backend); pa_bluetooth_discovery* pa_bluetooth_discovery_ref(pa_bluetooth_discovery *y); void pa_bluetooth_discovery_unref(pa_bluetooth_discovery *y); void pa_bluetooth_discovery_set_ofono_running(pa_bluetooth_discovery *y, bool is_running); |