diff options
Diffstat (limited to 'fs/common.h')
-rw-r--r-- | fs/common.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/fs/common.h b/fs/common.h new file mode 100644 index 0000000..79fd9f3 --- /dev/null +++ b/fs/common.h @@ -0,0 +1,18 @@ +#ifndef COMMON_H +#define COMMON_H + +#include <sys/types.h> + +#define DEBUG(...) + +void common_init(); + +typedef int (*fd_set_filler_fn_t)(fd_set*, fd_set*, fd_set*); + +void common_send_tabfs_to_ws(char *request_data); +char *common_receive_tabfs_to_ws(fd_set_filler_fn_t filler); + +void common_send_ws_to_tabfs(char *response_data); +char *common_receive_ws_to_tabfs(); + +#endif |