summaryrefslogblamecommitdiff
path: root/src/common/core.h
blob: 6722ca2ddb1686db4f96cfca7e5f123eacef161c (plain) (tree)
1
2
3
4
5
6
7
8
9




                                                        
 


                                                     
 


                                                        
 


                                                      
 
                
#ifndef CORE_H
#define CORE_H
#include <stdbool.h>
/// 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
/// NOT currently called when exit() is called
extern void term_func (void);

#endif // CORE_H