confparser.h
Go to the documentation of this file.
/*
* Copyright (c) 2009 NLNet Labs. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
* IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
#ifndef PARSER_CONFPARSER_H
#define PARSER_CONFPARSER_H
#include "config.h"
#include "wire/listener.h"
#include "hsm.h"
#include "status.h"
#define ADMAX 6 /* Maximum number of adapters that can be initialized */
ods_status parse_file_check(const char* cfgfile, const char* rngfile);
const char* parse_conf_string(const char* cfgfile, const char* expr,
int required);
hsm_repository_t* parse_conf_repositories(const char* cfgfile);
listener_type* parse_conf_listener(const char* cfgfile);
const char* parse_conf_zonelist_filename(const char* cfgfile);
const char* parse_conf_log_filename(const char* cfgfile);
const char* parse_conf_pid_filename(const char* cfgfile);
const char* parse_conf_notify_command(const char* cfgfile);
const char* parse_conf_clisock_filename(const char* cfgfile);
const char* parse_conf_working_dir(const char* cfgfile);
const char* parse_conf_username(const char* cfgfile);
const char* parse_conf_group(const char* cfgfile);
const char* parse_conf_chroot(const char* cfgfile);
int parse_conf_use_syslog(const char* cfgfile);
int parse_conf_verbosity(const char* cfgfile);
int parse_conf_worker_threads(const char* cfgfile);
int parse_conf_signer_threads(const char* cfgfile);
#endif /* PARSE_CONFPARSER_H */
parse_conf_clisock_filename
const char * parse_conf_clisock_filename(const char *cfgfile)
Definition confparser.c:513
parse_conf_zonelist_filename
const char * parse_conf_zonelist_filename(const char *cfgfile)
Definition confparser.c:418
parse_conf_repositories
hsm_repository_t * parse_conf_repositories(const char *cfgfile)
Definition confparser.c:143
parse_conf_working_dir
const char * parse_conf_working_dir(const char *cfgfile)
Definition confparser.c:536
parse_conf_log_filename
const char * parse_conf_log_filename(const char *cfgfile)
Definition confparser.c:457
parse_conf_worker_threads
int parse_conf_worker_threads(const char *cfgfile)
Definition confparser.c:641
parse_conf_username
const char * parse_conf_username(const char *cfgfile)
Definition confparser.c:556
parse_conf_pid_filename
const char * parse_conf_pid_filename(const char *cfgfile)
Definition confparser.c:477
parse_conf_signer_threads
int parse_conf_signer_threads(const char *cfgfile)
Definition confparser.c:658
parse_conf_use_syslog
int parse_conf_use_syslog(const char *cfgfile)
Definition confparser.c:611
parse_conf_notify_command
const char * parse_conf_notify_command(const char *cfgfile)
Definition confparser.c:496
parse_conf_chroot
const char * parse_conf_chroot(const char *cfgfile)
Definition confparser.c:590
parse_conf_group
const char * parse_conf_group(const char *cfgfile)
Definition confparser.c:573
parse_conf_verbosity
int parse_conf_verbosity(const char *cfgfile)
Definition confparser.c:624
parse_file_check
ods_status parse_file_check(const char *cfgfile, const char *rngfile)
Definition confparser.c:55
parse_conf_string
const char * parse_conf_string(const char *cfgfile, const char *expr, int required)
Definition confparser.c:355
parse_conf_listener
listener_type * parse_conf_listener(const char *cfgfile)
Definition confparser.c:252
hsm.h
listener.h
listener_type
struct listener_struct listener_type
Definition listener.h:80