1 /* Copyright (C) 2009 Trend Micro Inc.
4 * This program is a free software; you can redistribute it
5 * and/or modify it under the terms of the GNU General Public
6 * License (version 2) as published by the FSF - Free Software
11 #include "config/global-config.h"
12 #include "config/config.h"
15 /* Read configuration */
16 SyslogConfig **OS_ReadSyslogConf(__attribute__((unused)) int test_config, const char *cfgfile)
19 struct SyslogConfig_holder config;
20 SyslogConfig **syslog_config = NULL;
22 /* Modules for the configuration */
24 config.data = syslog_config;
26 /* Read configuration */
27 if (ReadConfig(modules, cfgfile, &config, NULL) < 0) {
28 ErrorExit(CONFIG_ERROR, ARGV0, cfgfile);
32 syslog_config = config.data;
34 return (syslog_config);