diff options
author | Lennart Poettering <lennart@poettering.net> | 2009-01-15 17:52:29 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2009-01-15 17:52:29 +0100 |
commit | 5abda63a1fa4d2c867af8b33b0090cd651ba8599 (patch) | |
tree | 608d616ae082b7d0accec9caa317c4aa56a27696 /src/pulsecore/client.h | |
parent | 75119e91cdb4f29b0567689d07d00ddc17a98b5c (diff) |
convert pa_client instantiation to use a pa_client_new_data struct and add hooks for manipulating it
Diffstat (limited to 'src/pulsecore/client.h')
-rw-r--r-- | src/pulsecore/client.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/pulsecore/client.h b/src/pulsecore/client.h index 28d1fe5f..8e72f323 100644 --- a/src/pulsecore/client.h +++ b/src/pulsecore/client.h @@ -42,11 +42,21 @@ struct pa_client { pa_module *module; char *driver; - void (*kill)(pa_client *c); void *userdata; + + void (*kill)(pa_client *c); }; -pa_client *pa_client_new(pa_core *c, const char *driver, const char *name); +typedef struct pa_client_new_data { + pa_proplist *proplist; + const char *driver; + pa_module *module; +} pa_client_new_data; + +pa_client_new_data *pa_client_new_data_init(pa_client_new_data *data); +void pa_client_new_data_done(pa_client_new_data *data); + +pa_client *pa_client_new(pa_core *c, pa_client_new_data *data); /* This function should be called only by the code that created the client */ void pa_client_free(pa_client *c); |