bluetooth: Create PA_BLUETOOTH_HOOK_ADAPTER_UUIDS_CHANGED

This hook will be fired any time the UUIDs property on the adapter
object changes.

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/593>
This commit is contained in:
João Paulo Rechi Vita 2019-09-10 13:16:17 -07:00 committed by Igor Kovalenko
parent a84914f7b3
commit cd0a8a5a0c
2 changed files with 2 additions and 0 deletions

View file

@ -1676,6 +1676,7 @@ static void parse_adapter_properties(pa_bluetooth_adapter *a, DBusMessageIter *i
pa_log_debug("%s: %s", key, value);
dbus_message_iter_next(&ai);
}
pa_hook_fire(pa_bluetooth_discovery_hook(a->discovery, PA_BLUETOOTH_HOOK_ADAPTER_UUIDS_CHANGED), a);
}
}

View file

@ -64,6 +64,7 @@ typedef struct pa_bluetooth_discovery pa_bluetooth_discovery;
typedef struct pa_bluetooth_backend pa_bluetooth_backend;
typedef enum pa_bluetooth_hook {
PA_BLUETOOTH_HOOK_ADAPTER_UUIDS_CHANGED, /* Call data: pa_bluetooth_adapter */
PA_BLUETOOTH_HOOK_DEVICE_CONNECTION_CHANGED, /* Call data: pa_bluetooth_device */
PA_BLUETOOTH_HOOK_DEVICE_UNLINK, /* Call data: pa_bluetooth_device */
PA_BLUETOOTH_HOOK_DEVICE_BATTERY_LEVEL_CHANGED, /* Call data: pa_bluetooth_device */