basic cli interface
[profile/ivi/pulseaudio.git] / src / client.h
1 #ifndef fooclienthfoo
2 #define fooclienthfoo
3
4 #include "core.h"
5
6 struct client {
7     uint32_t index;
8
9     char *name;
10     struct core *core;
11     const char *protocol_name;
12
13     void (*kill)(struct client *c);
14     void *userdata;
15 };
16
17 struct client *client_new(struct 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 client_free(struct client *c);
21
22 /* Code that didn't create the client should call this function to
23  * request destruction of the client */
24 void client_kill(struct client *c);
25
26 char *client_list_to_string(struct core *c);
27
28 #endif