pulse-server: do not put static properties into module::props

Now that the module's properties are served from `module_info::properties`,
there is no need for modules to put their static properties into
the `module::props` dictionary.
This commit is contained in:
Barnabás Pőcze 2022-06-02 15:04:22 +02:00
parent c9f632da9f
commit 5ad52bb88a
23 changed files with 23 additions and 23 deletions

View file

@ -109,7 +109,7 @@ struct module *create_module_always_sink(struct impl *impl, const char *argument
PW_LOG_TOPIC_INIT(mod_topic); PW_LOG_TOPIC_INIT(mod_topic);
props = pw_properties_new_dict(&SPA_DICT_INIT_ARRAY(module_always_sink_info)); props = pw_properties_new(NULL, NULL);
if (props == NULL) { if (props == NULL) {
res = -EINVAL; res = -EINVAL;
goto out; goto out;

View file

@ -512,7 +512,7 @@ struct module *create_module_combine_sink(struct impl *impl, const char *argumen
PW_LOG_TOPIC_INIT(mod_topic); PW_LOG_TOPIC_INIT(mod_topic);
props = pw_properties_new_dict(&SPA_DICT_INIT_ARRAY(module_combine_sink_info)); props = pw_properties_new(NULL, NULL);
if (!props) { if (!props) {
res = -EINVAL; res = -EINVAL;
goto out; goto out;

View file

@ -166,7 +166,7 @@ struct module *create_module_echo_cancel(struct impl *impl, const char *argument
PW_LOG_TOPIC_INIT(mod_topic); PW_LOG_TOPIC_INIT(mod_topic);
props = pw_properties_new_dict(&SPA_DICT_INIT_ARRAY(module_echo_cancel_info)); props = pw_properties_new(NULL, NULL);
aec_props = pw_properties_new(NULL, NULL); aec_props = pw_properties_new(NULL, NULL);
source_props = pw_properties_new(NULL, NULL); source_props = pw_properties_new(NULL, NULL);
sink_props = pw_properties_new(NULL, NULL); sink_props = pw_properties_new(NULL, NULL);

View file

@ -189,7 +189,7 @@ struct module *create_module_ladspa_sink(struct impl *impl, const char *argument
PW_LOG_TOPIC_INIT(mod_topic); PW_LOG_TOPIC_INIT(mod_topic);
props = pw_properties_new_dict(&SPA_DICT_INIT_ARRAY(module_ladspa_sink_info)); props = pw_properties_new(NULL, NULL);
capture_props = pw_properties_new(NULL, NULL); capture_props = pw_properties_new(NULL, NULL);
playback_props = pw_properties_new(NULL, NULL); playback_props = pw_properties_new(NULL, NULL);
if (!props || !capture_props || !playback_props) { if (!props || !capture_props || !playback_props) {

View file

@ -189,7 +189,7 @@ struct module *create_module_ladspa_source(struct impl *impl, const char *argume
PW_LOG_TOPIC_INIT(mod_topic); PW_LOG_TOPIC_INIT(mod_topic);
props = pw_properties_new_dict(&SPA_DICT_INIT_ARRAY(module_ladspa_source_info)); props = pw_properties_new(NULL, NULL);
capture_props = pw_properties_new(NULL, NULL); capture_props = pw_properties_new(NULL, NULL);
playback_props = pw_properties_new(NULL, NULL); playback_props = pw_properties_new(NULL, NULL);
if (!props || !capture_props || !playback_props) { if (!props || !capture_props || !playback_props) {

View file

@ -154,7 +154,7 @@ struct module *create_module_loopback(struct impl *impl, const char *argument)
PW_LOG_TOPIC_INIT(mod_topic); PW_LOG_TOPIC_INIT(mod_topic);
props = pw_properties_new_dict(&SPA_DICT_INIT_ARRAY(module_loopback_info)); props = pw_properties_new(NULL, NULL);
capture_props = pw_properties_new(NULL, NULL); capture_props = pw_properties_new(NULL, NULL);
playback_props = pw_properties_new(NULL, NULL); playback_props = pw_properties_new(NULL, NULL);
if (!props || !capture_props || !playback_props) { if (!props || !capture_props || !playback_props) {

View file

@ -92,7 +92,7 @@ struct module *create_module_native_protocol_tcp(struct impl *impl, const char *
PW_LOG_TOPIC_INIT(mod_topic); PW_LOG_TOPIC_INIT(mod_topic);
props = pw_properties_new_dict(&SPA_DICT_INIT_ARRAY(module_native_protocol_tcp_info)); props = pw_properties_new(NULL, NULL);
if (props == NULL) { if (props == NULL) {
res = -errno; res = -errno;
goto out; goto out;

View file

@ -169,7 +169,7 @@ struct module *create_module_null_sink(struct impl *impl, const char *argument)
PW_LOG_TOPIC_INIT(mod_topic); PW_LOG_TOPIC_INIT(mod_topic);
props = pw_properties_new_dict(&SPA_DICT_INIT_ARRAY(module_null_sink_info)); props = pw_properties_new(NULL, NULL);
if (props == NULL) { if (props == NULL) {
res = -EINVAL; res = -EINVAL;
goto out; goto out;

View file

@ -233,7 +233,7 @@ struct module *create_module_pipe_sink(struct impl *impl, const char *argument)
PW_LOG_TOPIC_INIT(mod_topic); PW_LOG_TOPIC_INIT(mod_topic);
props = pw_properties_new_dict(&SPA_DICT_INIT_ARRAY(module_pipe_sink_info)); props = pw_properties_new(NULL, NULL);
capture_props = pw_properties_new(NULL, NULL); capture_props = pw_properties_new(NULL, NULL);
if (!props || !capture_props) { if (!props || !capture_props) {
res = -EINVAL; res = -EINVAL;

View file

@ -253,7 +253,7 @@ struct module *create_module_pipe_source(struct impl *impl, const char *argument
PW_LOG_TOPIC_INIT(mod_topic); PW_LOG_TOPIC_INIT(mod_topic);
props = pw_properties_new_dict(&SPA_DICT_INIT_ARRAY(module_pipe_source_info)); props = pw_properties_new(NULL, NULL);
playback_props = pw_properties_new(NULL, NULL); playback_props = pw_properties_new(NULL, NULL);
if (!props || !playback_props) { if (!props || !playback_props) {
res = -errno; res = -errno;

View file

@ -101,7 +101,7 @@ struct module *create_module_raop_discover(struct impl *impl, const char *argume
PW_LOG_TOPIC_INIT(mod_topic); PW_LOG_TOPIC_INIT(mod_topic);
props = pw_properties_new_dict(&SPA_DICT_INIT_ARRAY(module_raop_discover_info)); props = pw_properties_new(NULL, NULL);
if (props == NULL) { if (props == NULL) {
res = -errno; res = -errno;
goto out; goto out;

View file

@ -155,7 +155,7 @@ struct module *create_module_remap_sink(struct impl *impl, const char *argument)
PW_LOG_TOPIC_INIT(mod_topic); PW_LOG_TOPIC_INIT(mod_topic);
props = pw_properties_new_dict(&SPA_DICT_INIT_ARRAY(module_remap_sink_info)); props = pw_properties_new(NULL, NULL);
capture_props = pw_properties_new(NULL, NULL); capture_props = pw_properties_new(NULL, NULL);
playback_props = pw_properties_new(NULL, NULL); playback_props = pw_properties_new(NULL, NULL);
if (!props || !capture_props || !playback_props) { if (!props || !capture_props || !playback_props) {

View file

@ -155,7 +155,7 @@ struct module *create_module_remap_source(struct impl *impl, const char *argumen
PW_LOG_TOPIC_INIT(mod_topic); PW_LOG_TOPIC_INIT(mod_topic);
props = pw_properties_new_dict(&SPA_DICT_INIT_ARRAY(module_remap_source_info)); props = pw_properties_new(NULL, NULL);
capture_props = pw_properties_new(NULL, NULL); capture_props = pw_properties_new(NULL, NULL);
playback_props = pw_properties_new(NULL, NULL); playback_props = pw_properties_new(NULL, NULL);
if (!props || !capture_props || !playback_props) { if (!props || !capture_props || !playback_props) {

View file

@ -134,7 +134,7 @@ struct module *create_module_roc_sink_input(struct impl *impl, const char *argum
PW_LOG_TOPIC_INIT(mod_topic); PW_LOG_TOPIC_INIT(mod_topic);
props = pw_properties_new_dict(&SPA_DICT_INIT_ARRAY(module_roc_sink_input_info)); props = pw_properties_new(NULL, NULL);
source_props = pw_properties_new(NULL, NULL); source_props = pw_properties_new(NULL, NULL);
roc_props = pw_properties_new(NULL, NULL); roc_props = pw_properties_new(NULL, NULL);
if (!props || !source_props || !roc_props) { if (!props || !source_props || !roc_props) {

View file

@ -133,7 +133,7 @@ struct module *create_module_roc_sink(struct impl *impl, const char *argument)
PW_LOG_TOPIC_INIT(mod_topic); PW_LOG_TOPIC_INIT(mod_topic);
props = pw_properties_new_dict(&SPA_DICT_INIT_ARRAY(module_roc_sink_info)); props = pw_properties_new(NULL, NULL);
sink_props = pw_properties_new(NULL, NULL); sink_props = pw_properties_new(NULL, NULL);
roc_props = pw_properties_new(NULL, NULL); roc_props = pw_properties_new(NULL, NULL);
if (!props || !sink_props || !roc_props) { if (!props || !sink_props || !roc_props) {

View file

@ -134,7 +134,7 @@ struct module *create_module_roc_source(struct impl *impl, const char *argument)
PW_LOG_TOPIC_INIT(mod_topic); PW_LOG_TOPIC_INIT(mod_topic);
props = pw_properties_new_dict(&SPA_DICT_INIT_ARRAY(module_roc_source_info)); props = pw_properties_new(NULL, NULL);
source_props = pw_properties_new(NULL, NULL); source_props = pw_properties_new(NULL, NULL);
roc_props = pw_properties_new(NULL, NULL); roc_props = pw_properties_new(NULL, NULL);
if (!props || !source_props || !roc_props) { if (!props || !source_props || !roc_props) {

View file

@ -141,7 +141,7 @@ struct module *create_module_simple_protocol_tcp(struct impl *impl, const char *
PW_LOG_TOPIC_INIT(mod_topic); PW_LOG_TOPIC_INIT(mod_topic);
props = pw_properties_new_dict(&SPA_DICT_INIT_ARRAY(module_simple_protocol_tcp_info)); props = pw_properties_new(NULL, NULL);
if (props == NULL) { if (props == NULL) {
res = -errno; res = -errno;
goto out; goto out;

View file

@ -257,7 +257,7 @@ struct module *create_module_switch_on_connect(struct impl *impl, const char *ar
PW_LOG_TOPIC_INIT(mod_topic); PW_LOG_TOPIC_INIT(mod_topic);
props = pw_properties_new_dict(&SPA_DICT_INIT_ARRAY(module_switch_on_connect_info)); props = pw_properties_new(NULL, NULL);
if (!props) { if (!props) {
res = -EINVAL; res = -EINVAL;
goto out; goto out;

View file

@ -160,7 +160,7 @@ struct module *create_module_tunnel_sink(struct impl *impl, const char *argument
PW_LOG_TOPIC_INIT(mod_topic); PW_LOG_TOPIC_INIT(mod_topic);
props = pw_properties_new_dict(&SPA_DICT_INIT_ARRAY(module_tunnel_sink_info)); props = pw_properties_new(NULL, NULL);
stream_props = pw_properties_new(NULL, NULL); stream_props = pw_properties_new(NULL, NULL);
if (props == NULL || stream_props == NULL) { if (props == NULL || stream_props == NULL) {
res = -ENOMEM; res = -ENOMEM;

View file

@ -160,7 +160,7 @@ struct module *create_module_tunnel_source(struct impl *impl, const char *argume
PW_LOG_TOPIC_INIT(mod_topic); PW_LOG_TOPIC_INIT(mod_topic);
props = pw_properties_new_dict(&SPA_DICT_INIT_ARRAY(module_tunnel_source_info)); props = pw_properties_new(NULL, NULL);
stream_props = pw_properties_new(NULL, NULL); stream_props = pw_properties_new(NULL, NULL);
if (props == NULL || stream_props == NULL) { if (props == NULL || stream_props == NULL) {
res = -ENOMEM; res = -ENOMEM;

View file

@ -119,7 +119,7 @@ struct module *create_module_x11_bell(struct impl *impl, const char *argument)
PW_LOG_TOPIC_INIT(mod_topic); PW_LOG_TOPIC_INIT(mod_topic);
props = pw_properties_new_dict(&SPA_DICT_INIT_ARRAY(module_x11_bell_info)); props = pw_properties_new(NULL, NULL);
if (props == NULL) { if (props == NULL) {
res = -EINVAL; res = -EINVAL;
goto out; goto out;

View file

@ -101,7 +101,7 @@ struct module *create_module_zeroconf_discover(struct impl *impl, const char *ar
PW_LOG_TOPIC_INIT(mod_topic); PW_LOG_TOPIC_INIT(mod_topic);
props = pw_properties_new_dict(&SPA_DICT_INIT_ARRAY(module_zeroconf_discover_info)); props = pw_properties_new(NULL, NULL);
if (props == NULL) { if (props == NULL) {
res = -errno; res = -errno;
goto out; goto out;

View file

@ -656,7 +656,7 @@ struct module *create_module_zeroconf_publish(struct impl *impl, const char *arg
PW_LOG_TOPIC_INIT(mod_topic); PW_LOG_TOPIC_INIT(mod_topic);
props = pw_properties_new_dict(&SPA_DICT_INIT_ARRAY(module_zeroconf_publish_info)); props = pw_properties_new(NULL, NULL);
if (!props) { if (!props) {
res = -errno; res = -errno;
goto out; goto out;