aboutsummaryrefslogtreecommitdiffstats
path: root/fs/common.h
diff options
context:
space:
mode:
authorOmar Rizwan <omar.rizwan@gmail.com>2020-10-21 15:53:27 -0700
committerOmar Rizwan <omar.rizwan@gmail.com>2020-10-21 15:53:27 -0700
commit64bd1f3948e2ce57a1fb26196019855727290465 (patch)
tree1d6f25527f8f6ce9bc2d9d793a6b8afce92de2c9 /fs/common.h
parent09291ea6bc9b1cdea9e1cae918c035bcdb7edf9c (diff)
fs: Attempt to switch to native messaging. It relays 1 message ok!
Diffstat (limited to 'fs/common.h')
-rw-r--r--fs/common.h34
1 files changed, 0 insertions, 34 deletions
diff --git a/fs/common.h b/fs/common.h
deleted file mode 100644
index 7004c7b..0000000
--- a/fs/common.h
+++ /dev/null
@@ -1,34 +0,0 @@
-// common provides an interface for tabfs.c (which talks to FUSE) to
-// talk to ws.c (which talks to the browser over WebSocket).
-
-#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*);
-
-// All send and receive calls are blocking!
-
-void common_send_tabfs_to_ws(char *request_data);
-// This function is called by the ws thread; it blocks waiting for
-// tabfs thread to send a request _from FUSE_, which means that the ws
-// thread wouldn't be able to hear about events _from the browser_
-// while blocked here (including important ones, like 'the browser
-// wants to connect to us!').
-//
-// The hack solution is that ws passes a function `filler` to add the
-// WebSocket file descriptors to the set that
-// `common_receive_tabfs_to_ws` polls, so it _also_ waits on
-// _browser-side_ events from the WebSocket file descriptors, not just
-// FUSE-side events.
-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