aboutsummaryrefslogtreecommitdiff
path: root/src/server.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/server.h')
-rw-r--r--src/server.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server.h b/src/server.h
index 6d3d029..a0efb39 100644
--- a/src/server.h
+++ b/src/server.h
@@ -24,6 +24,7 @@
enum room_id;
/* everything the server needs to manage its children */
+/* aliased as user_t */
struct child_data {
pid_t pid;
@@ -40,6 +41,9 @@ struct child_data {
ev_io *io_watcher;
ev_child *sigchld_watcher;
+ /* raw mode callback (NULL if none, set by world module) */
+ void (*raw_mode_cb)(struct child_data*, char *data, size_t len);
+
/* remote IP */
struct in_addr addr;
};