summaryrefslogtreecommitdiff
path: root/src/mmo/core.hpp
blob: 7a26f7d7aab40e4346f0fcf084eda020331f351d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef TMWA_MMO_CORE_HPP
#define TMWA_MMO_CORE_HPP

# include "../sanity.hpp"

# include "../range/slice.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(Slice<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