aboutsummaryrefslogtreecommitdiff
path: root/src/netcosm.h
diff options
context:
space:
mode:
authorFranklin Wei <git@fwei.tk>2015-12-24 19:18:45 -0500
committerFranklin Wei <git@fwei.tk>2015-12-24 19:18:45 -0500
commit53c15b0461ee39a4c32e61ff484389efb1e91d84 (patch)
treec26e64930e1d73960eebc26b02d9d2185d2e1aef /src/netcosm.h
parent28f94a54984fa7aa46fcb25e7991c1136329670f (diff)
downloadnetcosm-53c15b0461ee39a4c32e61ff484389efb1e91d84.zip
netcosm-53c15b0461ee39a4c32e61ff484389efb1e91d84.tar.gz
netcosm-53c15b0461ee39a4c32e61ff484389efb1e91d84.tar.bz2
netcosm-53c15b0461ee39a4c32e61ff484389efb1e91d84.tar.xz
stuff
Diffstat (limited to 'src/netcosm.h')
-rw-r--r--src/netcosm.h7
1 files changed, 6 insertions, 1 deletions
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 <time.h>
#include <unistd.h>
+#include "hash.h"
#include "telnet.h"
#define USERFILE "users.dat"
@@ -42,9 +43,10 @@
#define REQ_HANG 5 /* <UNIMP> 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);