This commit is contained in:
Joey Yakimowich-Payne 2026-01-30 08:10:51 -07:00
commit befe57530a
3 changed files with 20 additions and 42 deletions

View file

@ -158,7 +158,7 @@ void LinkProxyError(void* data, int, int res, const char* message) {
}
static const pw_proxy_events kLinkProxyEvents = {
PW_VERSION_PROXY_EVENTS,
.version = PW_VERSION_PROXY_EVENTS,
.bound = LinkProxyBound,
.removed = LinkProxyRemoved,
.error = LinkProxyError,
@ -234,7 +234,7 @@ void StreamStateChanged(void* data,
}
static const pw_stream_events kStreamEvents = {
PW_VERSION_STREAM_EVENTS,
.version = PW_VERSION_STREAM_EVENTS,
.state_changed = StreamStateChanged,
.process = StreamProcess,
};
@ -390,7 +390,7 @@ void Client::Impl::RegistryGlobal(void* data,
PW_VERSION_METADATA, 0));
if (impl->metadata_proxy) {
static const pw_metadata_events metadata_events = {
PW_VERSION_METADATA_EVENTS,
.version = PW_VERSION_METADATA_EVENTS,
.property = MetadataProperty,
};
pw_metadata_add_listener(
@ -700,7 +700,7 @@ Status Client::Impl::ConnectLocked() {
}
static const pw_core_events core_events = {
PW_VERSION_CORE_EVENTS,
.version = PW_VERSION_CORE_EVENTS,
.done = CoreDone,
.error = CoreError,
};
@ -713,7 +713,7 @@ Status Client::Impl::ConnectLocked() {
}
static const pw_registry_events registry_events = {
PW_VERSION_REGISTRY_EVENTS,
.version = PW_VERSION_REGISTRY_EVENTS,
.global = RegistryGlobal,
.global_remove = RegistryGlobalRemove,
};