mirror of
https://github.com/osnr/TabFS.git
synced 2024-05-21 06:56:36 +02:00
784ec83696
Three C modules: - tabfs (main thread; talks to FUSE) - common (tabfs<->ws communication helpers) - ws (side thread; talks to browser over WebSocket) It's single-threaded, but I don't think that matters anyway.
19 lines
370 B
C
19 lines
370 B
C
#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
|