1 /* @(#) $Id: config.c,v 1.20 2009/06/24 18:52:13 dcid Exp $ */
3 /* Copyright (C) 2009 Trend Micro Inc.
6 * This program is a free software; you can redistribute it
7 * and/or modify it under the terms of the GNU General Public
8 * License (version 3) as published by the FSF - Free Software
12 /* v0.3 (2005/08/23): Using the new OS_XML syntax and changing some usage
19 #include "logcollector.h"
22 /* LogCollectorConfig v0.3, 2005/03/03
23 * Read the config file (the localfiles)
24 * v0.3: Changed for the new OS_XML
26 int LogCollectorConfig(char * cfgfile)
30 logreader_config log_config;
34 log_config.config = NULL;
36 if(ReadConfig(modules, cfgfile, &log_config, NULL) < 0)
40 modules|= CAGENT_CONFIG;
41 ReadConfig(modules, AGENTCONFIG, &log_config, NULL);
44 logff = log_config.config;