cfg.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 DAEMON_CONFIG_H
#define DAEMON_CONFIG_H
#include "config.h"
#include <stdio.h>
typedef struct engineconfig_struct engineconfig_type;
#include "status.h"
#include "hsm.h"
#include "locks.h"
#include "status.h"
#include "wire/listener.h"
struct engineconfig_struct {
listener_type* interfaces;
hsm_repository_t* repositories;
const char* cfg_filename;
const char* zonelist_filename;
const char* log_filename;
const char* pid_filename;
const char* notify_command;
const char* clisock_filename;
const char* working_dir;
const char* username;
const char* group;
const char* chroot;
int use_syslog;
int num_worker_threads;
int num_signer_threads;
int verbosity;
};
engineconfig_type*
engine_config(const char* cfgfile, int cmdline_verbosity);
ods_status engine_config_check(engineconfig_type* config);
void engine_config_print(FILE* out, engineconfig_type* config);
void engine_config_cleanup(engineconfig_type* config);
#endif /* DAEMON_CONFIG_H */
engine_config_cleanup
void engine_config_cleanup(engineconfig_type *config)
Definition cfg.c:243
engine_config_print
void engine_config_print(FILE *out, engineconfig_type *config)
Definition cfg.c:146
engine_config_check
ods_status engine_config_check(engineconfig_type *config)
Definition cfg.c:110
engine_config
engineconfig_type * engine_config(const char *cfgfile, int cmdline_verbosity)
Definition cfg.c:51
hsm.h
listener.h
engineconfig_struct
Definition cfg.h:45
engineconfig_struct::chroot
const char * chroot
Definition cfg.h:57
engineconfig_struct::interfaces
listener_type * interfaces
Definition cfg.h:46
engineconfig_struct::cfg_filename
const char * cfg_filename
Definition cfg.h:48
engineconfig_struct::notify_command
const char * notify_command
Definition cfg.h:52
engineconfig_struct::verbosity
int verbosity
Definition cfg.h:61
engineconfig_struct::group
const char * group
Definition cfg.h:56
engineconfig_struct::clisock_filename
const char * clisock_filename
Definition cfg.h:53
engineconfig_struct::working_dir
const char * working_dir
Definition cfg.h:54
engineconfig_struct::repositories
hsm_repository_t * repositories
Definition cfg.h:47
engineconfig_struct::num_worker_threads
int num_worker_threads
Definition cfg.h:59
engineconfig_struct::use_syslog
int use_syslog
Definition cfg.h:58
engineconfig_struct::pid_filename
const char * pid_filename
Definition cfg.h:51
engineconfig_struct::zonelist_filename
const char * zonelist_filename
Definition cfg.h:49
engineconfig_struct::log_filename
const char * log_filename
Definition cfg.h:50
engineconfig_struct::num_signer_threads
int num_signer_threads
Definition cfg.h:60
engineconfig_struct::username
const char * username
Definition cfg.h:55
listener_struct
Definition listener.h:81