diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-07-19 16:06:17 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-07-19 16:06:17 +0000 |
commit | f2dcce7ce53aeb7679e0e0af40d59c0efb3062cc (patch) | |
tree | 97518364e3b3bd1bfbdefab2d9ec66ce54a4a836 /syslogd.h | |
parent | 3a58c0b3191476851487e55f8db4b0deb99f7b10 (diff) | |
download | rsyslog-f2dcce7ce53aeb7679e0e0af40d59c0efb3062cc.tar.gz rsyslog-f2dcce7ce53aeb7679e0e0af40d59c0efb3062cc.tar.xz rsyslog-f2dcce7ce53aeb7679e0e0af40d59c0efb3062cc.zip |
moved message object into its own set of files
Diffstat (limited to 'syslogd.h')
-rw-r--r-- | syslogd.h | 36 |
1 files changed, 35 insertions, 1 deletions
@@ -1,10 +1,44 @@ -/* common header for syslogd */ +/* common header for syslogd + * Copyright 2007 Rainer Gerhards and Adiscon GmbH. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * + * A copy of the GPL can be found in the file "COPYING" in this distribution. + */ +#ifndef SYSLOGD_H_INCLUDED +#define SYSLOGD_H_INCLUDED 1 + +#include "syslogd-types.h" + #if defined(__GLIBC__) #define dprintf mydprintf #endif /* __GLIBC__ */ + void dprintf(char *, ...); void logerror(char *type); void logerrorSz(char *type, char *errMsg); void logerrorInt(char *type, int iErr); +void getCurrTime(struct syslogTime *t); +int formatTimestampToMySQL(struct syslogTime *ts, char* pDst, size_t iLenDst); +int formatTimestamp3339(struct syslogTime *ts, char* pBuf, size_t iLenBuf); +int formatTimestamp3164(struct syslogTime *ts, char* pBuf, size_t iLenBuf); + +extern int glblHadMemShortage; /* indicates if we had memory shortage some time during the run */ +extern syslogCODE rs_prioritynames[]; +extern syslogCODE rs_facilitynames[]; + #include "rsyslog.h" +#endif /* #ifndef SYSLOGD_H_INCLUDED */ |