diff options
Diffstat (limited to 'polyp/props.c')
-rw-r--r-- | polyp/props.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/polyp/props.c b/polyp/props.c index 014059ec..596133bc 100644 --- a/polyp/props.c +++ b/polyp/props.c @@ -110,3 +110,10 @@ void pa_property_dump(struct pa_core *c, struct pa_strbuf *s) { while ((p = pa_hashmap_iterate(c->properties, &state, NULL))) pa_strbuf_printf(s, "[%s] -> [%p]\n", p->name, p->data); } + +int pa_property_replace(struct pa_core *c, const char *name, void *data) { + assert(c && name); + + pa_property_remove(c, name); + return pa_property_set(c, name, data); +} |