X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=ossec-hids.git;a=blobdiff_plain;f=src%2Fos_csyslogd%2Fcsyslogd.h;h=28435c94c264af6c65e3bbc3e6c989a057d148fc;hp=87bfc403a7f76140c486d99d06698d8784ecbf93;hb=6ef2f786c6c8ead94841b5f93baf9f43421f08c8;hpb=301048b51990573e58a30dc4a5bb4ec285cad554 diff --git a/src/os_csyslogd/csyslogd.h b/src/os_csyslogd/csyslogd.h index 87bfc40..28435c9 100755 --- a/src/os_csyslogd/csyslogd.h +++ b/src/os_csyslogd/csyslogd.h @@ -1,4 +1,5 @@ -/* @(#) $Id$ */ +/* @(#) $Id: ./src/os_csyslogd/csyslogd.h, 2011/09/08 dcid Exp $ + */ /* Copyright (C) 2009 Trend Micro Inc. * All rights reserved. @@ -8,7 +9,7 @@ * License (version 2) as published by the FSF - Free Software * Foundation. * - * License details at the LICENSE file included with OSSEC or + * License details at the LICENSE file included with OSSEC or * online at: http://www.ossec.net/en/licensing.html */ @@ -19,6 +20,7 @@ #include "config/csyslogd-config.h" +#define OS_CSYSLOGD_MAX_TRIES 10 /** Prototypes **/ @@ -34,6 +36,10 @@ int OS_Alert_SendSyslog(alert_data *al_data, SyslogConfig *syslog_config); /* Database inserting main function */ void OS_CSyslogD(SyslogConfig **syslog_config); +/* Conditional Field Formatting */ +int field_add_int(char *dest, int size, const char *format, const int value ); +int field_add_string(char *dest, int size, const char *format, const char *value ); +int field_add_truncated(char *dest, int size, const char *format, const char *value, int fmt_size ); /** Global vars **/