From 53c15b0461ee39a4c32e61ff484389efb1e91d84 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Thu, 24 Dec 2015 19:18:45 -0500 Subject: stuff --- src/netcosm.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/netcosm.h') diff --git a/src/netcosm.h b/src/netcosm.h index 1712539..fb50600 100644 --- a/src/netcosm.h +++ b/src/netcosm.h @@ -20,6 +20,7 @@ #include #include +#include "hash.h" #include "telnet.h" #define USERFILE "users.dat" @@ -42,9 +43,10 @@ #define REQ_HANG 5 /* server: loop forever */ #define REQ_KICK 6 /* server: kick PID with message; child: print message, quit */ #define REQ_WAIT 7 /* server: sleep 10s */ -#define REQ_LOOK 8 /* server: send child room description */ +#define REQ_GETROOMDESC 8 /* server: send child room description */ #define REQ_SETROOM 9 /* server: set child room */ #define REQ_MOVE 10 /* server: move child based on direction; child: success or failure */ +#define REQ_GETROOMNAME 11 /* server: send child's room name */ /* child states */ #define STATE_INIT 0 /* initial state */ @@ -152,3 +154,6 @@ void auth_list_users(void); void world_init(const struct roomdata_t *data, size_t sz); void sig_printf(const char *fmt, ...); void world_free(void); + +/* only the master calls this */ +struct room_t *room_get(room_id id); -- cgit v1.1