From c812c92d1a1835f0bda783e709481188c8d92225 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Sat, 15 Mar 2014 19:34:59 -0700 Subject: Clean up header organization --- src/mmo/core.hpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/mmo/core.hpp (limited to 'src/mmo/core.hpp') diff --git a/src/mmo/core.hpp b/src/mmo/core.hpp new file mode 100644 index 0000000..1788ece --- /dev/null +++ b/src/mmo/core.hpp @@ -0,0 +1,22 @@ +#ifndef TMWA_MMO_CORE_HPP +#define TMWA_MMO_CORE_HPP + +# include "../sanity.hpp" + +# include "../strings/fwd.hpp" + +/// core.c contains a server-independent main() function +/// and then runs a do_sendrecv loop + +/// When this is cleared, the server exits gracefully. +extern volatile bool runflag; + +/// This is an external function defined by each server +/// This function must register stuff for the parse loop +extern int do_init(int, ZString *); + +/// Cleanup function called whenever a signal kills us +/// or when if we manage to exit() gracefully. +extern void term_func(void); + +#endif // TMWA_MMO_CORE_HPP -- cgit v1.2.3-70-g09d2