diff --git a/src/modules/module-autolink.c b/src/modules/module-autolink.c index e5eb800f8..6274bb78f 100644 --- a/src/modules/module-autolink.c +++ b/src/modules/module-autolink.c @@ -339,12 +339,12 @@ static void module_destroy(void *data) free(impl); } -const struct pw_module_events module_events = { +static const struct pw_module_events module_events = { PW_VERSION_MODULE_EVENTS, .destroy = module_destroy, }; -const struct pw_core_events core_events = { +static const struct pw_core_events core_events = { PW_VERSION_CORE_EVENTS, .global_added = core_global_added, .global_removed = core_global_removed, diff --git a/src/modules/module-client-node.c b/src/modules/module-client-node.c index 6d4ea11d2..5208c5715 100644 --- a/src/modules/module-client-node.c +++ b/src/modules/module-client-node.c @@ -96,7 +96,7 @@ static void module_destroy(void *data) pw_factory_destroy(d->this); } -const struct pw_module_events module_events = { +static const struct pw_module_events module_events = { PW_VERSION_MODULE_EVENTS, .destroy = module_destroy, }; diff --git a/src/modules/module-client-node/protocol-native.c b/src/modules/module-client-node/protocol-native.c index 854475700..d162f9625 100644 --- a/src/modules/module-client-node/protocol-native.c +++ b/src/modules/module-client-node/protocol-native.c @@ -858,7 +858,7 @@ static const struct pw_protocol_native_demarshal pw_protocol_native_client_node_ { &client_node_demarshal_port_set_io, PW_PROTOCOL_NATIVE_REMAP }, }; -const struct pw_protocol_marshal pw_protocol_native_client_node_marshal = { +static const struct pw_protocol_marshal pw_protocol_native_client_node_marshal = { PW_TYPE_INTERFACE__ClientNode, PW_VERSION_CLIENT_NODE, &pw_protocol_native_client_node_method_marshal, diff --git a/src/modules/module-flatpak.c b/src/modules/module-flatpak.c index 98306cc7f..3e55a14f0 100644 --- a/src/modules/module-flatpak.c +++ b/src/modules/module-flatpak.c @@ -488,7 +488,7 @@ static void client_resource_impl(void *data, struct pw_resource *resource) } } -const struct pw_client_events client_events = { +static const struct pw_client_events client_events = { PW_VERSION_CLIENT_EVENTS, .resource_impl = client_resource_impl, }; @@ -537,7 +537,7 @@ core_global_removed(void *data, struct pw_global *global) } } -const struct pw_core_events core_events = { +static const struct pw_core_events core_events = { PW_VERSION_CORE_EVENTS, .global_added = core_global_added, .global_removed = core_global_removed, @@ -747,7 +747,7 @@ static void module_destroy(void *data) free(impl); } -const struct pw_module_events module_events = { +static const struct pw_module_events module_events = { PW_VERSION_MODULE_EVENTS, .destroy = module_destroy, };