context: make dict const

The match rules operate on a const struct spa_dict.
This commit is contained in:
Wim Taymans 2022-04-22 13:10:08 +02:00
parent fcc6f7fc7c
commit 59461113ba
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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);