1 /*
2  * CONFIG - Server configuration handler
3  *
4  * Author:
5  * Emile van Bergen, emile@evbergen.xs4all.nl
6  *
7  * Permission to redistribute an original or modified version of this program
8  * in source, intermediate or object code form is hereby granted exclusively
9  * under the terms of the GNU General Public License, version 2. Please see the
10  * file COPYING for details, or refer to http://www.gnu.org/copyleft/gpl.html.
11  *
12  * History:
13  * 2001/06/26 - EvB - Created
14  * 2001/10/29 - EvB - Moved start_conf() from bigtest to here as
15  * 		      conf_start(). Not ideal, but still the best place IMHO.
16  */
17 
18 
19 /*
20  * INCLUDES & DEFINES
21  */
22 
23 
24 #include <srvtypes.h>
25 
26 #define CONF_MAX_IDENTLEN	4092		     /* Max identifier length */
27 #define CONF_MAX_CODELEN	65536		     /* Max. code length */
28 #define CONF_MAINFNAME		"configuration"	     /* Main file in basepath */
29 #define EXPR_MAINFNAME		"behaviour"	     /* Main file in basepath */
30 
31 
32 /*
33  * PROTOTYPES
34  */
35 
36 
37 /* Main functions */
38 
39 CONF *conf_new(META *m, char *basepath, char *modbasepath);
40 
41 int conf_start(CONF *c, time_t t);		/* Opens sockets, runs childs */
42 int conf_stop(CONF *c, time_t t);		/* Stops childs, closes socks */
43 
44 void conf_del(CONF *c);				/* Frees data */
45 
46