summaryrefslogtreecommitdiff
path: root/src/common/core.hpp
blob: 2d68eaf300b25efb420e255eeaf475b6f8f55e29 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef CORE_HPP
#define CORE_HPP

/// core.c contains a server-independent main() function
/// and then runs a do_sendrecv loop

/// When this is cleared, the server exits gracefully
/// only used by map server's GM command: @mapexit
extern 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, char **);

/// Cleanup function called whenever a signal kills us
/// or when if we manage to exit() gracefully.
extern void term_func(void);

#endif // CORE_HPP