aboutsummaryrefslogtreecommitdiff
path: root/src/netcosm.h
diff options
context:
space:
mode:
authorFranklin Wei <git@fwei.tk>2015-12-26 21:02:54 -0500
committerFranklin Wei <git@fwei.tk>2015-12-26 21:03:15 -0500
commit0a2f9197058cc5248ec8e4bed7c361397c8d1c79 (patch)
treeb4ac31dcaa64bdfded9cdb2450bf936904802d08 /src/netcosm.h
parentf7041112f179aa79b6e315e7d57afbf76d3cd8bb (diff)
downloadnetcosm-0a2f9197058cc5248ec8e4bed7c361397c8d1c79.zip
netcosm-0a2f9197058cc5248ec8e4bed7c361397c8d1c79.tar.gz
netcosm-0a2f9197058cc5248ec8e4bed7c361397c8d1c79.tar.bz2
netcosm-0a2f9197058cc5248ec8e4bed7c361397c8d1c79.tar.xz
stuff mostly works, need to fix error on client exit
Diffstat (limited to 'src/netcosm.h')
-rw-r--r--src/netcosm.h25
1 files changed, 23 insertions, 2 deletions
diff --git a/src/netcosm.h b/src/netcosm.h
index c9c4a0f..d0d4dea 100644
--- a/src/netcosm.h
+++ b/src/netcosm.h
@@ -1,3 +1,21 @@
+/*
+ * NetCosm - a MUD server
+ * Copyright (C) 2015 Franklin Wei
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
#include <arpa/inet.h>
#include <ctype.h>
#include <errno.h>
@@ -5,6 +23,7 @@
#include <gcrypt.h>
#include <netdb.h>
#include <netinet/in.h>
+#include <poll.h>
#include <signal.h>
#include <stdarg.h>
#include <stdbool.h>
@@ -122,8 +141,10 @@ struct child_data {
struct roomdata_t {
/* the non-const pointers can be modified by the world module */
const char * const uniq_id;
- const char *name;
- const char *desc;
+
+ /* mutable properties */
+ char *name;
+ char *desc;
const char * const adjacent[NUM_DIRECTIONS];