summaryrefslogtreecommitdiffstats
path: root/server/red_dispatcher.h
diff options
context:
space:
mode:
Diffstat (limited to 'server/red_dispatcher.h')
-rw-r--r--server/red_dispatcher.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/server/red_dispatcher.h b/server/red_dispatcher.h
index 25811fae..9ee36d7d 100644
--- a/server/red_dispatcher.h
+++ b/server/red_dispatcher.h
@@ -62,11 +62,6 @@ static inline void send_data(int fd, void *in_buf, int n)
} while (n);
}
-static inline void write_message(int fd, RedWorkerMessage *message)
-{
- send_data(fd, message, sizeof(RedWorkerMessage));
-}
-
static inline void receive_data(int fd, void *in_buf, int n)
{
uint8_t *buf = in_buf;
@@ -83,12 +78,17 @@ static inline void receive_data(int fd, void *in_buf, int n)
} while (n);
}
+/* Keep message order, only append new messages!
+ * Replay code store enum values into save files.
+ */
enum {
RED_WORKER_MESSAGE_NOP,
+
RED_WORKER_MESSAGE_UPDATE,
RED_WORKER_MESSAGE_WAKEUP,
RED_WORKER_MESSAGE_OOM,
- RED_WORKER_MESSAGE_READY,
+ RED_WORKER_MESSAGE_READY, /* unused */
+
RED_WORKER_MESSAGE_DISPLAY_CONNECT,
RED_WORKER_MESSAGE_DISPLAY_DISCONNECT,
RED_WORKER_MESSAGE_DISPLAY_MIGRATE,