Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

core.h File Reference

Core server API Contains declarations of functions that must be implemented by each server. More...

#include <time.h>

Go to the source code of this file.

Version Flags

The flags to be passed into get_version().
Todo:
This should be grouped into enums.
See also:
get_version()


#define VERSION_FLAG_MAJOR   0
#define VERSION_FLAG_MINOR   1
#define VERSION_FLAG_REVISION   2
#define VERSION_FLAG_RELEASE   3
#define VERSION_FLAG_OFFICIAL   4
#define VERSION_FLAG_MOD   5

Defines

#define MAX_TERMFUNC   10
 Maximum number of termfunc callbacks.

Functions

void do_init (const int argc, char **argv)
 Called on server startup.
void set_termfunc (void(*termfunc)(void))
 Assign a function as a callback on termination.
void versionscreen (void)
 Prints version.
void display_title (void)
 Prints logo Prints a fancy and colourful logo.
int get_version (char flag)
 Gets server version number.

Variables

int runflag
 Main loop control.
time_t start_time
 Server startup time.


Detailed Description

Core server API Contains declarations of functions that must be implemented by each server.


Define Documentation

#define MAX_TERMFUNC   10
 

Maximum number of termfunc callbacks.

See also:
set_termfunc()


Generated on Fri Apr 28 10:20:05 2006 for OpenAthena by  doxygen 1.4.4