mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
convert pa_client instantiation to use a pa_client_new_data struct and add hooks for manipulating it
This commit is contained in:
parent
75119e91cd
commit
5abda63a1f
7 changed files with 106 additions and 30 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue