proplist: pa_proplist_gets: constify proplist pointer

This commit is contained in:
Lyndon Brown 2018-05-27 04:10:53 +01:00 committed by Arun Raghavan
parent cc063264e6
commit 58c3f9b671
2 changed files with 2 additions and 2 deletions

View file

@ -272,7 +272,7 @@ int pa_proplist_set(pa_proplist *p, const char *key, const void *data, size_t nb
return 0;
}
const char *pa_proplist_gets(pa_proplist *p, const char *key) {
const char *pa_proplist_gets(const pa_proplist *p, const char *key) {
struct property *prop;
pa_assert(p);

View file

@ -311,7 +311,7 @@ int pa_proplist_set(pa_proplist *p, const char *key, const void *data, size_t nb
* the data is not valid UTF-8. Will return a NUL-terminated string in
* an internally allocated buffer. The caller should make a copy of
* the data before accessing the property list again. \since 0.9.11 */
const char *pa_proplist_gets(pa_proplist *p, const char *key);
const char *pa_proplist_gets(const pa_proplist *p, const char *key);
/** Store the value for the specified key in \a data. Will store a
* NUL-terminated string for string entries. The \a data pointer returned will