From 59461113ba105052bd14f1df8b85707e50ade9ae Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 22 Apr 2022 13:10:08 +0200 Subject: [PATCH] context: make dict const The match rules operate on a const struct spa_dict. --- src/pipewire/conf.c | 2 +- src/pipewire/context.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);