diff --git a/src/pipewire/conf.c b/src/pipewire/conf.c index 89d61066b..bd2fe1f0a 100644 --- a/src/pipewire/conf.c +++ b/src/pipewire/conf.c @@ -1040,7 +1040,7 @@ static int match_rules(void *data, const char *location, const char *section, SPA_EXPORT int pw_context_conf_section_match_rules(struct pw_context *context, const char *section, - struct spa_dict *props, + const struct spa_dict *props, int (*callback) (void *data, const char *location, const char *action, const char *str, size_t len), void *data) diff --git a/src/pipewire/context.h b/src/pipewire/context.h index 84baf31d0..31292c463 100644 --- a/src/pipewire/context.h +++ b/src/pipewire/context.h @@ -125,7 +125,7 @@ int pw_context_conf_section_for_each(struct pw_context *context, const char *sec void *data); /** emit callback for all matched properties. Since 0.3.46 */ int pw_context_conf_section_match_rules(struct pw_context *context, const char *section, - struct spa_dict *props, + const struct spa_dict *props, int (*callback) (void *data, const char *location, const char *action, const char *str, size_t len), void *data);