blob: 39167ee79988335ae259fa56d8909976a47b25d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#ifndef fooclienthfoo
#define fooclienthfoo
#include "core.h"
struct client {
uint32_t index;
char *name;
struct core *core;
const char *protocol_name;
void (*kill)(struct client *c);
void *userdata;
};
struct client *client_new(struct core *c, const char *protocol_name, char *name);
/* This function should be called only by the code that created the client */
void client_free(struct client *c);
/* Code that didn't create the client should call this function to
* request destruction of the client */
void client_kill(struct client *c);
char *client_list_to_string(struct core *c);
void client_rename(struct client *c, const char *name);
#endif
|