fixes init script for non ipv6 enabled systems #472755
[packages/xinetd.git] / xinetd / conf.h
1 /*
2  * (c) Copyright 1992 by Panagiotis Tsirigotis
3  * (c) Sections Copyright 1998-2001 by Rob Braun
4  * All rights reserved.  The file named COPYRIGHT specifies the terms 
5  * and conditions for redistribution.
6  */
7
8 #ifndef CONF_H
9 #define CONF_H
10
11 /*
12  * $Id: conf.h,v 1.1.1.1 2003/02/19 17:29:27 bbraun Exp $
13  */
14
15
16 #include "pset.h"
17 #include "sconf.h"
18
19
20 struct configuration
21 {
22    pset_h cnf_service_confs ;
23    struct service_config *cnf_defaults ;
24 } ;
25
26 #define CNF_DEFAULTS( confp )        (confp)->cnf_defaults
27 #define CNF_SERVICE_CONFS( confp )   (confp)->cnf_service_confs
28
29 void cnf_free(struct configuration *confp);
30 struct service_config *cnf_extract(struct configuration *confp,struct service_config *scp);
31 void cnf_dump(struct configuration *confp,int fd);
32 status_e cnf_init(struct configuration *confp,int *fdp,psi_h *iterp);
33 unsigned cnf_start_services(struct configuration *confp);
34
35
36 #endif    /* CONF_H */
37