mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	pulse-server: mark module_*_prepare() methods static
				
					
				
			Since 37fa911a72 ("pulse-server: module: rework registry") none
of the module methods need to have external linkage.
			
			
This commit is contained in:
		
							parent
							
								
									75d28cadcd
								
							
						
					
					
						commit
						f1b0cfd546
					
				
					 23 changed files with 23 additions and 23 deletions
				
			
		| 
						 | 
					@ -101,7 +101,7 @@ static const struct spa_dict_item module_always_sink_info[] = {
 | 
				
			||||||
	{ PW_KEY_MODULE_VERSION, PACKAGE_VERSION },
 | 
						{ PW_KEY_MODULE_VERSION, PACKAGE_VERSION },
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int module_always_sink_prepare(struct module * const module)
 | 
					static int module_always_sink_prepare(struct module * const module)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	PW_LOG_TOPIC_INIT(mod_topic);
 | 
						PW_LOG_TOPIC_INIT(mod_topic);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -499,7 +499,7 @@ static int module_combine_sink_unload(struct module *module)
 | 
				
			||||||
	return 0;
 | 
						return 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int module_combine_sink_prepare(struct module * const module)
 | 
					static int module_combine_sink_prepare(struct module * const module)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct module_combine_sink_data * const d = module->user_data;
 | 
						struct module_combine_sink_data * const d = module->user_data;
 | 
				
			||||||
	struct pw_properties * const props = module->props;
 | 
						struct pw_properties * const props = module->props;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -155,7 +155,7 @@ static const struct spa_dict_item module_echo_cancel_info[] = {
 | 
				
			||||||
	{ PW_KEY_MODULE_VERSION, PACKAGE_VERSION },
 | 
						{ PW_KEY_MODULE_VERSION, PACKAGE_VERSION },
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int module_echo_cancel_prepare(struct module * const module)
 | 
					static int module_echo_cancel_prepare(struct module * const module)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct module_echo_cancel_data * const d = module->user_data;
 | 
						struct module_echo_cancel_data * const d = module->user_data;
 | 
				
			||||||
	struct pw_properties * const props = module->props;
 | 
						struct pw_properties * const props = module->props;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -177,7 +177,7 @@ static void position_to_props(struct spa_audio_info_raw *info, struct pw_propert
 | 
				
			||||||
	pw_properties_set(props, SPA_KEY_AUDIO_POSITION, s);
 | 
						pw_properties_set(props, SPA_KEY_AUDIO_POSITION, s);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int module_ladspa_sink_prepare(struct module * const module)
 | 
					static int module_ladspa_sink_prepare(struct module * const module)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct module_ladspa_sink_data * const d = module->user_data;
 | 
						struct module_ladspa_sink_data * const d = module->user_data;
 | 
				
			||||||
	struct pw_properties * const props = module->props;
 | 
						struct pw_properties * const props = module->props;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -177,7 +177,7 @@ static void position_to_props(struct spa_audio_info_raw *info, struct pw_propert
 | 
				
			||||||
	pw_properties_set(props, SPA_KEY_AUDIO_POSITION, s);
 | 
						pw_properties_set(props, SPA_KEY_AUDIO_POSITION, s);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int module_ladspa_source_prepare(struct module * const module)
 | 
					static int module_ladspa_source_prepare(struct module * const module)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct module_ladspa_source_data * const d = module->user_data;
 | 
						struct module_ladspa_source_data * const d = module->user_data;
 | 
				
			||||||
	struct pw_properties * const props = module->props;
 | 
						struct pw_properties * const props = module->props;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -143,7 +143,7 @@ static const struct spa_dict_item module_loopback_info[] = {
 | 
				
			||||||
	{ PW_KEY_MODULE_VERSION, PACKAGE_VERSION },
 | 
						{ PW_KEY_MODULE_VERSION, PACKAGE_VERSION },
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int module_loopback_prepare(struct module * const module)
 | 
					static int module_loopback_prepare(struct module * const module)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct module_loopback_data * const d = module->user_data;
 | 
						struct module_loopback_data * const d = module->user_data;
 | 
				
			||||||
	struct pw_properties * const props = module->props;
 | 
						struct pw_properties * const props = module->props;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -79,7 +79,7 @@ static const struct spa_dict_item module_native_protocol_tcp_info[] = {
 | 
				
			||||||
	{ PW_KEY_MODULE_VERSION, PACKAGE_VERSION },
 | 
						{ PW_KEY_MODULE_VERSION, PACKAGE_VERSION },
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int module_native_protocol_tcp_prepare(struct module * const module)
 | 
					static int module_native_protocol_tcp_prepare(struct module * const module)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct module_native_protocol_tcp_data * const d = module->user_data;
 | 
						struct module_native_protocol_tcp_data * const d = module->user_data;
 | 
				
			||||||
	struct pw_properties * const props = module->props;
 | 
						struct pw_properties * const props = module->props;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -158,7 +158,7 @@ static const struct spa_dict_item module_null_sink_info[] = {
 | 
				
			||||||
	{ PW_KEY_MODULE_VERSION, PACKAGE_VERSION },
 | 
						{ PW_KEY_MODULE_VERSION, PACKAGE_VERSION },
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int module_null_sink_prepare(struct module * const module)
 | 
					static int module_null_sink_prepare(struct module * const module)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct pw_properties * const props = module->props;
 | 
						struct pw_properties * const props = module->props;
 | 
				
			||||||
	const char *str;
 | 
						const char *str;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -218,7 +218,7 @@ static const struct spa_dict_item module_pipe_sink_info[] = {
 | 
				
			||||||
	{ PW_KEY_MODULE_VERSION, PACKAGE_VERSION },
 | 
						{ PW_KEY_MODULE_VERSION, PACKAGE_VERSION },
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int module_pipe_sink_prepare(struct module * const module)
 | 
					static int module_pipe_sink_prepare(struct module * const module)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct module_pipesink_data * const d = module->user_data;
 | 
						struct module_pipesink_data * const d = module->user_data;
 | 
				
			||||||
	struct pw_properties * const props = module->props;
 | 
						struct pw_properties * const props = module->props;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -238,7 +238,7 @@ static const struct spa_dict_item module_pipe_source_info[] = {
 | 
				
			||||||
	{ PW_KEY_MODULE_VERSION, PACKAGE_VERSION },
 | 
						{ PW_KEY_MODULE_VERSION, PACKAGE_VERSION },
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int module_pipe_source_prepare(struct module * const module)
 | 
					static int module_pipe_source_prepare(struct module * const module)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct module_pipesrc_data * const d = module->user_data;
 | 
						struct module_pipesrc_data * const d = module->user_data;
 | 
				
			||||||
	struct pw_properties * const props = module->props;
 | 
						struct pw_properties * const props = module->props;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -92,7 +92,7 @@ static const struct spa_dict_item module_raop_discover_info[] = {
 | 
				
			||||||
	{ PW_KEY_MODULE_VERSION, PACKAGE_VERSION },
 | 
						{ PW_KEY_MODULE_VERSION, PACKAGE_VERSION },
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int module_raop_discover_prepare(struct module * const module)
 | 
					static int module_raop_discover_prepare(struct module * const module)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	PW_LOG_TOPIC_INIT(mod_topic);
 | 
						PW_LOG_TOPIC_INIT(mod_topic);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -143,7 +143,7 @@ static void position_to_props(struct spa_audio_info_raw *info, struct pw_propert
 | 
				
			||||||
	pw_properties_set(props, SPA_KEY_AUDIO_POSITION, s);
 | 
						pw_properties_set(props, SPA_KEY_AUDIO_POSITION, s);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int module_remap_sink_prepare(struct module * const module)
 | 
					static int module_remap_sink_prepare(struct module * const module)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct module_remap_sink_data * const d = module->user_data;
 | 
						struct module_remap_sink_data * const d = module->user_data;
 | 
				
			||||||
	struct pw_properties * const props = module->props;
 | 
						struct pw_properties * const props = module->props;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -143,7 +143,7 @@ static void position_to_props(struct spa_audio_info_raw *info, struct pw_propert
 | 
				
			||||||
	pw_properties_set(props, SPA_KEY_AUDIO_POSITION, s);
 | 
						pw_properties_set(props, SPA_KEY_AUDIO_POSITION, s);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int module_remap_source_prepare(struct module * const module)
 | 
					static int module_remap_source_prepare(struct module * const module)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct module_remap_source_data * const d = module->user_data;
 | 
						struct module_remap_source_data * const d = module->user_data;
 | 
				
			||||||
	struct pw_properties * const props = module->props;
 | 
						struct pw_properties * const props = module->props;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -124,7 +124,7 @@ static const struct spa_dict_item module_roc_sink_input_info[] = {
 | 
				
			||||||
	{ PW_KEY_MODULE_VERSION, PACKAGE_VERSION },
 | 
						{ PW_KEY_MODULE_VERSION, PACKAGE_VERSION },
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int module_roc_sink_input_prepare(struct module * const module)
 | 
					static int module_roc_sink_input_prepare(struct module * const module)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct module_roc_sink_input_data * const d = module->user_data;
 | 
						struct module_roc_sink_input_data * const d = module->user_data;
 | 
				
			||||||
	struct pw_properties * const props = module->props;
 | 
						struct pw_properties * const props = module->props;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -123,7 +123,7 @@ static const struct spa_dict_item module_roc_sink_info[] = {
 | 
				
			||||||
	{ PW_KEY_MODULE_VERSION, PACKAGE_VERSION },
 | 
						{ PW_KEY_MODULE_VERSION, PACKAGE_VERSION },
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int module_roc_sink_prepare(struct module * const module)
 | 
					static int module_roc_sink_prepare(struct module * const module)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct module_roc_sink_data * const d = module->user_data;
 | 
						struct module_roc_sink_data * const d = module->user_data;
 | 
				
			||||||
	struct pw_properties * const props = module->props;
 | 
						struct pw_properties * const props = module->props;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -124,7 +124,7 @@ static const struct spa_dict_item module_roc_source_info[] = {
 | 
				
			||||||
	{ PW_KEY_MODULE_VERSION, PACKAGE_VERSION },
 | 
						{ PW_KEY_MODULE_VERSION, PACKAGE_VERSION },
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int module_roc_source_prepare(struct module * const module)
 | 
					static int module_roc_source_prepare(struct module * const module)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct module_roc_source_data * const d = module->user_data;
 | 
						struct module_roc_source_data * const d = module->user_data;
 | 
				
			||||||
	struct pw_properties * const props = module->props;
 | 
						struct pw_properties * const props = module->props;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -130,7 +130,7 @@ static const struct spa_dict_item module_simple_protocol_tcp_info[] = {
 | 
				
			||||||
	{ PW_KEY_MODULE_VERSION, PACKAGE_VERSION },
 | 
						{ PW_KEY_MODULE_VERSION, PACKAGE_VERSION },
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int module_simple_protocol_tcp_prepare(struct module * const module)
 | 
					static int module_simple_protocol_tcp_prepare(struct module * const module)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct module_simple_protocol_tcp_data * const d = module->user_data;
 | 
						struct module_simple_protocol_tcp_data * const d = module->user_data;
 | 
				
			||||||
	struct pw_properties * const props = module->props;
 | 
						struct pw_properties * const props = module->props;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -245,7 +245,7 @@ static const struct spa_dict_item module_switch_on_connect_info[] = {
 | 
				
			||||||
	{ PW_KEY_MODULE_VERSION, PACKAGE_VERSION },
 | 
						{ PW_KEY_MODULE_VERSION, PACKAGE_VERSION },
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int module_switch_on_connect_prepare(struct module * const module)
 | 
					static int module_switch_on_connect_prepare(struct module * const module)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct module_switch_on_connect_data * const d = module->user_data;
 | 
						struct module_switch_on_connect_data * const d = module->user_data;
 | 
				
			||||||
	struct pw_properties * const props = module->props;
 | 
						struct pw_properties * const props = module->props;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -149,7 +149,7 @@ static void audio_info_to_props(struct spa_audio_info_raw *info, struct pw_prope
 | 
				
			||||||
	pw_properties_set(props, SPA_KEY_AUDIO_POSITION, s);
 | 
						pw_properties_set(props, SPA_KEY_AUDIO_POSITION, s);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int module_tunnel_sink_prepare(struct module * const module)
 | 
					static int module_tunnel_sink_prepare(struct module * const module)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct module_tunnel_sink_data * const d = module->user_data;
 | 
						struct module_tunnel_sink_data * const d = module->user_data;
 | 
				
			||||||
	struct pw_properties * const props = module->props;
 | 
						struct pw_properties * const props = module->props;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -149,7 +149,7 @@ static void audio_info_to_props(struct spa_audio_info_raw *info, struct pw_prope
 | 
				
			||||||
	pw_properties_set(props, SPA_KEY_AUDIO_POSITION, s);
 | 
						pw_properties_set(props, SPA_KEY_AUDIO_POSITION, s);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int module_tunnel_source_prepare(struct module * const module)
 | 
					static int module_tunnel_source_prepare(struct module * const module)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct module_tunnel_source_data * const d = module->user_data;
 | 
						struct module_tunnel_source_data * const d = module->user_data;
 | 
				
			||||||
	struct pw_properties * const props = module->props;
 | 
						struct pw_properties * const props = module->props;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -100,7 +100,7 @@ static int module_x11_bell_unload(struct module *module)
 | 
				
			||||||
	return 0;
 | 
						return 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int module_x11_bell_prepare(struct module * const module)
 | 
					static int module_x11_bell_prepare(struct module * const module)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	PW_LOG_TOPIC_INIT(mod_topic);
 | 
						PW_LOG_TOPIC_INIT(mod_topic);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -92,7 +92,7 @@ static const struct spa_dict_item module_zeroconf_discover_info[] = {
 | 
				
			||||||
	{ PW_KEY_MODULE_VERSION, PACKAGE_VERSION },
 | 
						{ PW_KEY_MODULE_VERSION, PACKAGE_VERSION },
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int module_zeroconf_discover_prepare(struct module * const module)
 | 
					static int module_zeroconf_discover_prepare(struct module * const module)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	PW_LOG_TOPIC_INIT(mod_topic);
 | 
						PW_LOG_TOPIC_INIT(mod_topic);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -647,7 +647,7 @@ static const struct spa_dict_item module_zeroconf_publish_info[] = {
 | 
				
			||||||
	{ PW_KEY_MODULE_VERSION, PACKAGE_VERSION },
 | 
						{ PW_KEY_MODULE_VERSION, PACKAGE_VERSION },
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int module_zeroconf_publish_prepare(struct module * const module)
 | 
					static int module_zeroconf_publish_prepare(struct module * const module)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	PW_LOG_TOPIC_INIT(mod_topic);
 | 
						PW_LOG_TOPIC_INIT(mod_topic);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue