diff options
| author | Franklin Wei <git@fwei.tk> | 2016-02-16 21:17:46 -0500 |
|---|---|---|
| committer | Franklin Wei <git@fwei.tk> | 2016-02-16 21:17:46 -0500 |
| commit | 02de31c48c021742c6245b711790f6d853866c36 (patch) | |
| tree | d145f3ce9156de42064f8bceb3d0eb4362e3bb5a /src/client.h | |
| parent | 8c58ee885941af4c944995b029363f139b8f54bd (diff) | |
| download | netcosm-02de31c48c021742c6245b711790f6d853866c36.zip netcosm-02de31c48c021742c6245b711790f6d853866c36.tar.gz netcosm-02de31c48c021742c6245b711790f6d853866c36.tar.bz2 netcosm-02de31c48c021742c6245b711790f6d853866c36.tar.xz | |
refactor client_ module
Diffstat (limited to 'src/client.h')
| -rw-r--r-- | src/client.h | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/src/client.h b/src/client.h index 4ab7f9b..5b5c5ff 100644 --- a/src/client.h +++ b/src/client.h @@ -19,25 +19,18 @@ /* You should use #pragma once everywhere. */ #pragma once +#include "globals.h" + +#include "client_reqs.h" #include "room.h" #include "userdb.h" -enum reqdata_typespec { TYPE_NONE = 0, TYPE_USERDATA, TYPE_BOOLEAN } reqdata_type; - -union reqdata_t { - struct userdata_t userdata; - bool boolean; -}; - -extern enum reqdata_typespec reqdata_type; -extern union reqdata_t returned_reqdata; +extern int client_fd, to_parent, from_parent; +extern bool are_admin; /* call from child process ONLY */ void send_master(unsigned char cmd, const void *data, size_t sz); -/* the master sends the child SIGRTMIN+0 */ -void sig_rt_0_handler(int s, siginfo_t *info, void *v); - void out(const char *fmt, ...) __attribute__((format(printf,1,2))); void out_raw(const void*, size_t); |