mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-21 08:56:56 -05:00
emit bound_id event
This commit is contained in:
parent
f56e4dbc4d
commit
e3a1c4151e
12 changed files with 23 additions and 0 deletions
|
|
@ -97,9 +97,20 @@ static void device_destroy(void *data)
|
|||
pw_resource_destroy(impl->resource);
|
||||
}
|
||||
|
||||
static void device_initialized(void *data)
|
||||
{
|
||||
struct impl *impl = data;
|
||||
struct pw_device *device = impl->device;
|
||||
struct pw_global *global = pw_device_get_global(device);
|
||||
|
||||
pw_log_debug("client-device %p: initialized global:%d", impl, global->id);
|
||||
pw_resource_bound_id(impl->resource, global->id);
|
||||
}
|
||||
|
||||
static const struct pw_device_events device_events = {
|
||||
PW_VERSION_DEVICE_EVENTS,
|
||||
.destroy = device_destroy,
|
||||
.initialized = device_initialized,
|
||||
};
|
||||
|
||||
struct pw_device *pw_client_device_new(struct pw_resource *resource,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue