bluetooth: Create NULL backend

This commit is contained in:
João Paulo Rechi Vita 2014-08-22 11:07:14 +03:00 committed by Tanu Kaskinen
parent 2198048e5d
commit dca5d07937
5 changed files with 64 additions and 1 deletions

View file

@ -87,6 +87,7 @@ struct pa_bluetooth_discovery {
pa_hashmap *devices;
pa_hashmap *transports;
pa_bluetooth_backend *backend;
PA_LLIST_HEAD(pa_dbus_pending, pending);
};
@ -1590,6 +1591,7 @@ pa_bluetooth_discovery* pa_bluetooth_discovery_get(pa_core *c) {
endpoint_init(y, PA_BLUETOOTH_PROFILE_A2DP_SINK);
endpoint_init(y, PA_BLUETOOTH_PROFILE_A2DP_SOURCE);
y->backend = pa_bluetooth_backend_new(c);
get_managed_objects(y);
@ -1631,6 +1633,9 @@ void pa_bluetooth_discovery_unref(pa_bluetooth_discovery *y) {
pa_hashmap_free(y->transports);
}
if (y->backend)
pa_bluetooth_backend_free(y->backend);
if (y->connection) {
if (y->matches_added)