mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2026-02-18 22:05:37 -05:00
bluez 5: Build both headset backends, if available
Enable both ofono and native backends to be built into the same libbluez5-util. Never build the null backend. Signed-off-by: David Henningsson <david.henningsson@canonical.com>
This commit is contained in:
parent
807c98a37d
commit
1ffede3c85
6 changed files with 67 additions and 27 deletions
|
|
@ -117,8 +117,25 @@ struct pa_bluetooth_adapter {
|
|||
bool valid;
|
||||
};
|
||||
|
||||
pa_bluetooth_backend *pa_bluetooth_backend_new(pa_core *c, pa_bluetooth_discovery *y);
|
||||
void pa_bluetooth_backend_free(pa_bluetooth_backend *b);
|
||||
#ifdef HAVE_BLUEZ_5_OFONO_HEADSET
|
||||
pa_bluetooth_backend *pa_bluetooth_ofono_backend_new(pa_core *c, pa_bluetooth_discovery *y);
|
||||
void pa_bluetooth_ofono_backend_free(pa_bluetooth_backend *b);
|
||||
#else
|
||||
static inline pa_bluetooth_backend *pa_bluetooth_ofono_backend_new(pa_core *c, pa_bluetooth_discovery *y) {
|
||||
return NULL;
|
||||
}
|
||||
static inline void pa_bluetooth_ofono_backend_free(pa_bluetooth_backend *b) {}
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_BLUEZ_5_NATIVE_HEADSET
|
||||
pa_bluetooth_backend *pa_bluetooth_native_backend_new(pa_core *c, pa_bluetooth_discovery *y);
|
||||
void pa_bluetooth_native_backend_free(pa_bluetooth_backend *b);
|
||||
#else
|
||||
static inline pa_bluetooth_backend *pa_bluetooth_native_backend_new(pa_core *c, pa_bluetooth_discovery *y) {
|
||||
return NULL;
|
||||
}
|
||||
static inline void pa_bluetooth_native_backend_free(pa_bluetooth_backend *b) {}
|
||||
#endif
|
||||
|
||||
pa_bluetooth_transport *pa_bluetooth_transport_new(pa_bluetooth_device *d, const char *owner, const char *path,
|
||||
pa_bluetooth_profile_t p, const uint8_t *config, size_t size);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue