summaryrefslogtreecommitdiffstats
path: root/polyp/props.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-11-11 21:18:33 +0000
committerLennart Poettering <lennart@poettering.net>2004-11-11 21:18:33 +0000
commitc005bd466651d8720aef3198d73bc0a3d459f953 (patch)
treeeb4bc36858b0e9a504b022a7f66b5fa21ff13f65 /polyp/props.c
parentdbaa83c60730633315aa13d74907c6572985c050 (diff)
add username to runtime directory name in /tmp/
rework autospawning code and x11 credential publishing add support for IPv6 reenable LOWDELAY for tcp sockets git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@280 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/props.c')
-rw-r--r--polyp/props.c7
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);
+}