aboutsummaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 0f05a89..fefd735 100644
--- a/src/util.h
+++ b/src/util.h
@@ -19,9 +19,20 @@
/* You should use #pragma once everywhere. */
#pragma once
+#include "room.h"
+
/* utility functions */
void __attribute__((noreturn,format(printf,1,2))) error(const char *fmt, ...);
void __attribute__((format(printf,4,5))) debugf_real(const char*, int, const char*, const char *fmt, ...);
void remove_cruft(char*);
void all_upper(char*);
void all_lower(char*);
+
+void write_string(int fd, const char *str);
+char *read_string(int fd);
+
+void write_roomid(int fd, room_id *id);
+room_id read_roomid(int fd);
+
+void write_bool(int fd, bool b);
+bool read_bool(int fd);