OpenDNSSEC-signer  1.4.8.2
confparser.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2009 NLNet Labs. All rights reserved.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  * 1. Redistributions of source code must retain the above copyright
8  * notice, this list of conditions and the following disclaimer.
9  * 2. Redistributions in binary form must reproduce the above copyright
10  * notice, this list of conditions and the following disclaimer in the
11  * documentation and/or other materials provided with the distribution.
12  *
13  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
14  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
15  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16  * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
17  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
19  * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
20  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
21  * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
22  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
23  * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24  *
25  */
26 
32 #ifndef PARSER_CONFPARSER_H
33 #define PARSER_CONFPARSER_H
34 
35 #include "config.h"
36 #include "wire/listener.h"
37 #include "shared/allocator.h"
38 #include "shared/status.h"
39 
40 #define ADMAX 6 /* Maximum number of adapters that can be initialized */
41 
49 ods_status parse_file_check(const char* cfgfile, const char* rngfile);
50 
59 const char* parse_conf_string(const char* cfgfile, const char* expr,
60  int required);
61 
70  const char* cfgfile);
71 
81 const char* parse_conf_zonelist_filename(allocator_type* allocator,
82  const char* cfgfile);
83 const char* parse_conf_log_filename(allocator_type* allocator,
84  const char* cfgfile);
85 
87 const char* parse_conf_pid_filename(allocator_type* allocator,
88  const char* cfgfile);
89 const char* parse_conf_notify_command(allocator_type* allocator,
90  const char* cfgfile);
91 const char* parse_conf_clisock_filename(allocator_type* allocator,
92  const char* cfgfile);
93 const char* parse_conf_working_dir(allocator_type* allocator,
94  const char* cfgfile);
95 const char* parse_conf_username(allocator_type* allocator,
96  const char* cfgfile);
97 const char* parse_conf_group(allocator_type* allocator,
98  const char* cfgfile);
99 const char* parse_conf_chroot(allocator_type* allocator,
100  const char* cfgfile);
101 
110 int parse_conf_use_syslog(const char* cfgfile);
111 int parse_conf_verbosity(const char* cfgfile);
112 
114 int parse_conf_worker_threads(const char* cfgfile);
115 int parse_conf_signer_threads(const char* cfgfile);
116 
117 #endif /* PARSE_CONFPARSER_H */
const char * parse_conf_zonelist_filename(allocator_type *allocator, const char *cfgfile)
Definition: confparser.c:293
const char * parse_conf_username(allocator_type *allocator, const char *cfgfile)
Definition: confparser.c:405
const char * parse_conf_pid_filename(allocator_type *allocator, const char *cfgfile)
Definition: confparser.c:330
const char * parse_conf_chroot(allocator_type *allocator, const char *cfgfile)
Definition: confparser.c:439
enum ods_enum_status ods_status
Definition: status.h:90
ods_status parse_file_check(const char *cfgfile, const char *rngfile)
Definition: confparser.c:53
const char * parse_conf_log_filename(allocator_type *allocator, const char *cfgfile)
Definition: confparser.c:310
const char * parse_conf_notify_command(allocator_type *allocator, const char *cfgfile)
Definition: confparser.c:349
int parse_conf_verbosity(const char *cfgfile)
Definition: confparser.c:473
int parse_conf_worker_threads(const char *cfgfile)
Definition: confparser.c:490
int parse_conf_use_syslog(const char *cfgfile)
Definition: confparser.c:460
const char * parse_conf_clisock_filename(allocator_type *allocator, const char *cfgfile)
Definition: confparser.c:366
const char * parse_conf_group(allocator_type *allocator, const char *cfgfile)
Definition: confparser.c:422
int parse_conf_signer_threads(const char *cfgfile)
Definition: confparser.c:507
const char * parse_conf_string(const char *cfgfile, const char *expr, int required)
Definition: confparser.c:235
const char * parse_conf_working_dir(allocator_type *allocator, const char *cfgfile)
Definition: confparser.c:385
listener_type * parse_conf_listener(allocator_type *allocator, const char *cfgfile)
Definition: confparser.c:142