1 /* @(#) $Id: ./src/os_csyslogd/csyslogd.h, 2011/09/08 dcid Exp $
4 /* Copyright (C) 2009 Trend Micro Inc.
7 * This program is a free software; you can redistribute it
8 * and/or modify it under the terms of the GNU General Public
9 * License (version 2) as published by the FSF - Free Software
12 * License details at the LICENSE file included with OSSEC or
13 * online at: http://www.ossec.net/en/licensing.html
21 #include "config/csyslogd-config.h"
23 #define OS_CSYSLOGD_MAX_TRIES 10
27 /* Read syslog config */
28 void *OS_ReadSyslogConf(int test_config, char *cfgfile,
29 SyslogConfig **sys_config);
32 /* Send alerts via syslog */
33 int OS_Alert_SendSyslog(alert_data *al_data, SyslogConfig *syslog_config);
36 /* Database inserting main function */
37 void OS_CSyslogD(SyslogConfig **syslog_config);
39 /* Conditional Field Formatting */
40 int field_add_int(char *dest, int size, const char *format, const int value );
41 int field_add_string(char *dest, int size, const char *format, const char *value );
42 int field_add_truncated(char *dest, int size, const char *format, const char *value, int fmt_size );