summaryrefslogtreecommitdiffstats
path: root/polyp/client.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-12-12 22:58:53 +0000
committerLennart Poettering <lennart@poettering.net>2004-12-12 22:58:53 +0000
commite02be6c15beddec976220bce2ee1a68520286c01 (patch)
treeda9cfdfd7a254fa7e8e21b1ef29456b852dbc133 /polyp/client.c
parent9a01cf44f09e92e14a720f4f531e943a50f26b72 (diff)
* fix include file names in installed header files
* add browsing API * add new tool pabrowse * add typeid subsystem * bump API version * split off random.c * add an identification cookie git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@320 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'polyp/client.c')
-rw-r--r--polyp/client.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/polyp/client.c b/polyp/client.c
index 40f5e385..8c7f4800 100644
--- a/polyp/client.c
+++ b/polyp/client.c
@@ -33,7 +33,7 @@
#include "subscribe.h"
#include "log.h"
-struct pa_client *pa_client_new(struct pa_core *core, const char *protocol_name, char *name) {
+struct pa_client *pa_client_new(struct pa_core *core, pa_typeid_t typeid, const char *name) {
struct pa_client *c;
int r;
assert(core);
@@ -42,7 +42,7 @@ struct pa_client *pa_client_new(struct pa_core *core, const char *protocol_name,
c->name = pa_xstrdup(name);
c->owner = NULL;
c->core = core;
- c->protocol_name = pa_xstrdup(protocol_name);
+ c->typeid = typeid;
c->kill = NULL;
c->userdata = NULL;
@@ -68,7 +68,6 @@ void pa_client_free(struct pa_client *c) {
pa_log_info(__FILE__": freed %u \"%s\"\n", c->index, c->name);
pa_subscription_post(c->core, PA_SUBSCRIPTION_EVENT_CLIENT|PA_SUBSCRIPTION_EVENT_REMOVE, c->index);
pa_xfree(c->name);
- pa_xfree(c->protocol_name);
pa_xfree(c);
}