proplist: pa_proplist_iterate: constify proplist pointer

This commit is contained in:
Lyndon Brown 2018-05-27 02:45:47 +01:00 committed by Arun Raghavan
parent e82506f08d
commit 5d101fd2e2
2 changed files with 2 additions and 2 deletions

View file

@ -370,7 +370,7 @@ int pa_proplist_unset_many(pa_proplist *p, const char * const keys[]) {
return n; return n;
} }
const char *pa_proplist_iterate(pa_proplist *p, void **state) { const char *pa_proplist_iterate(const pa_proplist *p, void **state) {
struct property *prop; struct property *prop;
if (!(prop = pa_hashmap_iterate(MAKE_HASHMAP_CONST(p), state, NULL))) if (!(prop = pa_hashmap_iterate(MAKE_HASHMAP_CONST(p), state, NULL)))

View file

@ -368,7 +368,7 @@ int pa_proplist_unset_many(pa_proplist *p, const char * const keys[]);
* current entry. On each invocation this function will return the * current entry. On each invocation this function will return the
* key string for the next entry. The keys in the property list do not * key string for the next entry. The keys in the property list do not
* have any particular order. \since 0.9.11 */ * have any particular order. \since 0.9.11 */
const char *pa_proplist_iterate(pa_proplist *p, void **state); const char *pa_proplist_iterate(const pa_proplist *p, void **state);
/** Format the property list nicely as a human readable string. This /** Format the property list nicely as a human readable string. This
* works very much like pa_proplist_to_string_sep() and uses a newline * works very much like pa_proplist_to_string_sep() and uses a newline