diff options
Diffstat (limited to 'src/client.h')
-rw-r--r-- | src/client.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/client.h b/src/client.h new file mode 100644 index 00000000..7128a452 --- /dev/null +++ b/src/client.h @@ -0,0 +1,21 @@ +#ifndef fooclienthfoo +#define fooclienthfoo + +#include "core.h" + +struct client { + char *name; + uint32_t index; + + const char *protocol_name; + + void *userdata; + void (*kill)(struct client *c); + + struct core *core; +}; + +struct client *client_new(struct core *c, const char *protocol_name, char *name); +void client_free(struct client *c); + +#endif |