diff options
author | Lyndon Brown <jnqnfe@gmail.com> | 2018-05-27 02:59:12 +0100 |
---|---|---|
committer | Tanu Kaskinen <tanuk@iki.fi> | 2018-06-04 13:19:31 +0300 |
commit | 2d3abbbdd27c86cfaf1dbc587f69011e76b20ebb (patch) | |
tree | 8767a18e71177bbd82765b9de62850c38bf969b2 | |
parent | c2185c5d8ca42bc53ac7741d7f79493116e1194e (diff) | |
download | pulseaudio-2d3abbbdd27c86cfaf1dbc587f69011e76b20ebb.tar.gz |
proplist: pa_proplist_get: constify proplist pointer
-rw-r--r-- | src/pulse/proplist.c | 2 | ||||
-rw-r--r-- | src/pulse/proplist.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/pulse/proplist.c b/src/pulse/proplist.c index 37877b4ea..0da127ef8 100644 --- a/src/pulse/proplist.c +++ b/src/pulse/proplist.c @@ -299,7 +299,7 @@ const char *pa_proplist_gets(pa_proplist *p, const char *key) { return (char*) prop->value; } -int pa_proplist_get(pa_proplist *p, const char *key, const void **data, size_t *nbytes) { +int pa_proplist_get(const pa_proplist *p, const char *key, const void **data, size_t *nbytes) { struct property *prop; pa_assert(p); diff --git a/src/pulse/proplist.h b/src/pulse/proplist.h index 14139a7e6..68900183c 100644 --- a/src/pulse/proplist.h +++ b/src/pulse/proplist.h @@ -318,7 +318,7 @@ const char *pa_proplist_gets(pa_proplist *p, const char *key); * point to an internally allocated buffer. The caller should make a * copy of the data before the property list is accessed again. * Returns zero on success, negative on error. \since 0.9.11 */ -int pa_proplist_get(pa_proplist *p, const char *key, const void **data, size_t *nbytes); +int pa_proplist_get(const pa_proplist *p, const char *key, const void **data, size_t *nbytes); /** Update mode enum for pa_proplist_update(). \since 0.9.11 */ typedef enum pa_update_mode { |