4ca8d96ec45217318b7b4e49f4c9652cabe7f8a3
[profile/ivi/pulseaudio.git] / src / client.h
1 #ifndef fooclienthfoo
2 #define fooclienthfoo
3
4 #include "core.h"
5
6 struct pa_client {
7     uint32_t index;
8
9     char *name;
10     struct pa_core *core;
11     const char *protocol_name;
12
13     void (*kill)(struct pa_client *c);
14     void *userdata;
15 };
16
17 struct pa_client *pa_client_new(struct pa_core *c, const char *protocol_name, char *name);
18
19 /* This function should be called only by the code that created the client */
20 void pa_client_free(struct pa_client *c);
21
22 /* Code that didn't create the client should call this function to
23  * request destruction of the client */
24 void pa_client_kill(struct pa_client *c);
25
26 char *pa_client_list_to_string(struct pa_core *c);
27
28 void pa_client_rename(struct pa_client *c, const char *name);
29
30 #endif