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