diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-09-12 15:17:47 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-09-12 15:17:47 +0200 |
commit | 1e819a8afe9494cc760196ac91f3b617bc073de9 (patch) | |
tree | c0701f10aecefb3a60af67c310b33b3d2bedeb0a /runtime/datetime.h | |
parent | 262f61d869b95f63b393ae48d683b13e70322478 (diff) | |
parent | 4e86efaf0e20626d8f740fcff131bfd38453de4d (diff) | |
download | rsyslog-1e819a8afe9494cc760196ac91f3b617bc073de9.tar.gz rsyslog-1e819a8afe9494cc760196ac91f3b617bc073de9.tar.bz2 rsyslog-1e819a8afe9494cc760196ac91f3b617bc073de9.zip |
Merge branch 'beta'
Conflicts:
runtime/rsyslog.h
tools/syslogd.c
Diffstat (limited to 'runtime/datetime.h')
-rw-r--r-- | runtime/datetime.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/runtime/datetime.h b/runtime/datetime.h index 8f1bcb17..755cc0ed 100644 --- a/runtime/datetime.h +++ b/runtime/datetime.h @@ -37,7 +37,7 @@ typedef struct datetime_s { BEGINinterface(datetime) /* name must also be changed in ENDinterface macro! */ void (*getCurrTime)(struct syslogTime *t); int (*ParseTIMESTAMP3339)(struct syslogTime *pTime, char** ppszTS); - int (*ParseTIMESTAMP3164)(struct syslogTime *pTime, char* pszTS); + int (*ParseTIMESTAMP3164)(struct syslogTime *pTime, char** pszTS); int (*formatTimestampToMySQL)(struct syslogTime *ts, char* pDst, size_t iLenDst); int (*formatTimestampToPgSQL)(struct syslogTime *ts, char *pDst, size_t iLenDst); int (*formatTimestamp3339)(struct syslogTime *ts, char* pBuf, size_t iLenBuf); @@ -45,6 +45,12 @@ BEGINinterface(datetime) /* name must also be changed in ENDinterface macro! */ int (*formatTimestampSecFrac)(struct syslogTime *ts, char* pBuf, size_t iLenBuf); ENDinterface(datetime) #define datetimeCURR_IF_VERSION 2 /* increment whenever you change the interface structure! */ +/* interface changes: + * 1 - initial version + * 2 - not compatible to 1 - bugfix required ParseTIMESTAMP3164 to accept char ** as + * last parameter. Did not try to remain compatible as this is not something any + * third-party module should call. -- rgerhards, 2008.-09-12 + */ /* prototypes */ PROTOTYPEObj(datetime); |