index 716c10534566b84001bf132d88587ea3770f77c3..0fe278d731ccd3e639f294506e02eafeb0743a7d 100644 (file)
/*
- * syscollector - src/daemon/config.h
+ * SysDB - src/daemon/config.h
* Copyright (C) 2012 Sebastian 'tokkee' Harl <sh@tokkee.org>
* All rights reserved.
*
#ifndef DAEMON_CONFIG_H
#define DAEMON_CONFIG_H 1
+/*
+ * parse result values
+ */
+
+extern char **listen_addresses;
+extern size_t listen_addresses_num;
+
+/*
+ * daemon_parse_config:
+ * Parse the specified configuration file.
+ *
+ * Returns:
+ * - 0 on success
+ * - a negative value when loading the configuration failed because of errors
+ * in the daemon or libsysdb
+ * - a positive value on parser errors
+ */
int
daemon_parse_config(const char *filename);