mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
pulse-server: module: remove unused client argument
None of the modules use the `client` argument in their unload callbacks. Remove it.
This commit is contained in:
parent
bc2914b3e9
commit
f5e561c2fe
24 changed files with 28 additions and 28 deletions
|
|
@ -45,7 +45,7 @@
|
|||
static void on_module_unload(void *obj, void *data, int res, uint32_t index)
|
||||
{
|
||||
struct module *module = obj;
|
||||
module_unload(NULL, module);
|
||||
module_unload(module);
|
||||
}
|
||||
|
||||
void module_schedule_unload(struct module *module)
|
||||
|
|
@ -110,7 +110,7 @@ void module_free(struct module *module)
|
|||
free(module);
|
||||
}
|
||||
|
||||
int module_unload(struct client *client, struct module *module)
|
||||
int module_unload(struct module *module)
|
||||
{
|
||||
struct impl *impl = module->impl;
|
||||
int res = 0;
|
||||
|
|
@ -121,7 +121,7 @@ int module_unload(struct client *client, struct module *module)
|
|||
pw_log_info("unload module index:%u name:%s", module->index, module->name);
|
||||
|
||||
if (module->methods->unload)
|
||||
res = module->methods->unload(client, module);
|
||||
res = module->methods->unload(module);
|
||||
|
||||
if (module->loaded)
|
||||
broadcast_subscribe_event(impl,
|
||||
|
|
@ -302,7 +302,7 @@ struct module *module_create(struct client *client, const char *name, const char
|
|||
|
||||
module->index = pw_map_insert_new(&impl->modules, module);
|
||||
if (module->index == SPA_ID_INVALID) {
|
||||
module_unload(client, module);
|
||||
module_unload(module);
|
||||
return NULL;
|
||||
}
|
||||
module->name = strdup(name);
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ struct module_methods {
|
|||
uint32_t version;
|
||||
|
||||
int (*load) (struct client *client, struct module *module);
|
||||
int (*unload) (struct client *client, struct module *module);
|
||||
int (*unload) (struct module *module);
|
||||
};
|
||||
|
||||
struct module {
|
||||
|
|
@ -76,7 +76,7 @@ struct module *module_create(struct client *client, const char *name, const char
|
|||
void module_free(struct module *module);
|
||||
struct module *module_new(struct impl *impl, const struct module_methods *methods, size_t user_data);
|
||||
int module_load(struct client *client, struct module *module);
|
||||
int module_unload(struct client *client, struct module *module);
|
||||
int module_unload(struct module *module);
|
||||
void module_schedule_unload(struct module *module);
|
||||
|
||||
void module_add_listener(struct module *module,
|
||||
|
|
|
|||
|
|
@ -390,7 +390,7 @@ static int module_combine_sink_load(struct client *client, struct module *module
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int module_combine_sink_unload(struct client *client, struct module *module)
|
||||
static int module_combine_sink_unload(struct module *module)
|
||||
{
|
||||
struct module_combine_sink_data *d = module->user_data;
|
||||
int i;
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ static int module_echo_cancel_load(struct client *client, struct module *module)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int module_echo_cancel_unload(struct client *client, struct module *module)
|
||||
static int module_echo_cancel_unload(struct module *module)
|
||||
{
|
||||
struct module_echo_cancel_data *d = module->user_data;
|
||||
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@ static int module_ladspa_sink_load(struct client *client, struct module *module)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int module_ladspa_sink_unload(struct client *client, struct module *module)
|
||||
static int module_ladspa_sink_unload(struct module *module)
|
||||
{
|
||||
struct module_ladspa_sink_data *d = module->user_data;
|
||||
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@ static int module_ladspa_source_load(struct client *client, struct module *modul
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int module_ladspa_source_unload(struct client *client, struct module *module)
|
||||
static int module_ladspa_source_unload(struct module *module)
|
||||
{
|
||||
struct module_ladspa_source_data *d = module->user_data;
|
||||
|
||||
|
|
|
|||
|
|
@ -107,7 +107,7 @@ static int module_loopback_load(struct client *client, struct module *module)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int module_loopback_unload(struct client *client, struct module *module)
|
||||
static int module_loopback_unload(struct module *module)
|
||||
{
|
||||
struct module_loopback_data *d = module->user_data;
|
||||
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ static int module_native_protocol_tcp_load(struct client *client, struct module
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int module_native_protocol_tcp_unload(struct client *client, struct module *module)
|
||||
static int module_native_protocol_tcp_unload(struct module *module)
|
||||
{
|
||||
struct module_native_protocol_tcp_data *d = module->user_data;
|
||||
struct server **s;
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ static int module_null_sink_load(struct client *client, struct module *module)
|
|||
return SPA_RESULT_RETURN_ASYNC(0);
|
||||
}
|
||||
|
||||
static int module_null_sink_unload(struct client *client, struct module *module)
|
||||
static int module_null_sink_unload(struct module *module)
|
||||
{
|
||||
struct module_null_sink_data *d = module->user_data;
|
||||
|
||||
|
|
|
|||
|
|
@ -185,7 +185,7 @@ static int module_pipesink_load(struct client *client, struct module *module)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int module_pipesink_unload(struct client *client, struct module *module)
|
||||
static int module_pipesink_unload(struct module *module)
|
||||
{
|
||||
struct module_pipesink_data *d = module->user_data;
|
||||
|
||||
|
|
|
|||
|
|
@ -206,7 +206,7 @@ static int module_pipesource_load(struct client *client, struct module *module)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int module_pipesource_unload(struct client *client, struct module *module)
|
||||
static int module_pipesource_unload(struct module *module)
|
||||
{
|
||||
struct module_pipesrc_data *d = module->user_data;
|
||||
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ static int module_raop_discover_load(struct client *client, struct module *modul
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int module_raop_discover_unload(struct client *client, struct module *module)
|
||||
static int module_raop_discover_unload(struct module *module)
|
||||
{
|
||||
struct module_raop_discover_data *d = module->user_data;
|
||||
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ static int module_remap_sink_load(struct client *client, struct module *module)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int module_remap_sink_unload(struct client *client, struct module *module)
|
||||
static int module_remap_sink_unload(struct module *module)
|
||||
{
|
||||
struct module_remap_sink_data *d = module->user_data;
|
||||
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ static int module_remap_source_load(struct client *client, struct module *module
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int module_remap_source_unload(struct client *client, struct module *module)
|
||||
static int module_remap_source_unload(struct module *module)
|
||||
{
|
||||
struct module_remap_source_data *d = module->user_data;
|
||||
|
||||
|
|
|
|||
|
|
@ -104,7 +104,7 @@ static int module_roc_sink_load(struct client *client, struct module *module)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int module_roc_sink_unload(struct client *client, struct module *module)
|
||||
static int module_roc_sink_unload(struct module *module)
|
||||
{
|
||||
struct module_roc_sink_data *d = module->user_data;
|
||||
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ static int module_roc_source_load(struct client *client, struct module *module)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int module_roc_source_unload(struct client *client, struct module *module)
|
||||
static int module_roc_source_unload(struct module *module)
|
||||
{
|
||||
struct module_roc_source_data *d = module->user_data;
|
||||
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@ static int module_simple_protocol_tcp_load(struct client *client, struct module
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int module_simple_protocol_tcp_unload(struct client *client, struct module *module)
|
||||
static int module_simple_protocol_tcp_unload(struct module *module)
|
||||
{
|
||||
struct module_simple_protocol_tcp_data *d = module->user_data;
|
||||
|
||||
|
|
|
|||
|
|
@ -209,7 +209,7 @@ error:
|
|||
return res;
|
||||
}
|
||||
|
||||
static int module_switch_on_connect_unload(struct client *client, struct module *module)
|
||||
static int module_switch_on_connect_unload(struct module *module)
|
||||
{
|
||||
struct module_switch_on_connect_data *d = module->user_data;
|
||||
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ static int module_tunnel_sink_load(struct client *client, struct module *module)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int module_tunnel_sink_unload(struct client *client, struct module *module)
|
||||
static int module_tunnel_sink_unload(struct module *module)
|
||||
{
|
||||
struct module_tunnel_sink_data *d = module->user_data;
|
||||
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ static int module_tunnel_source_load(struct client *client, struct module *modul
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int module_tunnel_source_unload(struct client *client, struct module *module)
|
||||
static int module_tunnel_source_unload(struct module *module)
|
||||
{
|
||||
struct module_tunnel_source_data *d = module->user_data;
|
||||
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ static int module_x11_bell_load(struct client *client, struct module *module)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int module_x11_bell_unload(struct client *client, struct module *module)
|
||||
static int module_x11_bell_unload(struct module *module)
|
||||
{
|
||||
struct module_x11_bell_data *d = module->user_data;
|
||||
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ static int module_zeroconf_discover_load(struct client *client, struct module *m
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int module_zeroconf_discover_unload(struct client *client, struct module *module)
|
||||
static int module_zeroconf_discover_unload(struct module *module)
|
||||
{
|
||||
struct module_zeroconf_discover_data *d = module->user_data;
|
||||
|
||||
|
|
|
|||
|
|
@ -602,7 +602,7 @@ static int module_zeroconf_publish_load(struct client *client, struct module *mo
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int module_zeroconf_publish_unload(struct client *client, struct module *module)
|
||||
static int module_zeroconf_publish_unload(struct module *module)
|
||||
{
|
||||
struct module_zeroconf_publish_data *d = module->user_data;
|
||||
struct service *s;
|
||||
|
|
|
|||
|
|
@ -4828,7 +4828,7 @@ static int do_unload_module(struct client *client, uint32_t command, uint32_t ta
|
|||
if (module == NULL)
|
||||
return -ENOENT;
|
||||
|
||||
module_unload(client, module);
|
||||
module_unload(module);
|
||||
|
||||
return reply_simple_ack(client, tag);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue