diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-01-30 19:07:23 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-01-30 19:07:23 +0000 |
commit | 0e3b40fd8a6106fbfa83e7cab1a5af515f698111 (patch) | |
tree | ede9dc66448f03d4ed84da7243229ff3f8eaceec /stream.c | |
parent | 05538a2bad4f9a2c1be7a50099e30ab22249a2ff (diff) | |
download | rsyslog-0e3b40fd8a6106fbfa83e7cab1a5af515f698111.tar.gz rsyslog-0e3b40fd8a6106fbfa83e7cab1a5af515f698111.tar.bz2 rsyslog-0e3b40fd8a6106fbfa83e7cab1a5af515f698111.zip |
- implemented limiting disk space allocated to queues
- addded $MainMsgQueueMaxDiskSpace config directive
- addded $ActionQueueMaxDiskSpace config directive
Diffstat (limited to 'stream.c')
-rw-r--r-- | stream.c | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -754,6 +754,25 @@ finalize_it: } #undef isProp + +/* return the current offset inside the stream. Note that on two consequtive calls, the offset + * reported on the second call may actually be lower than on the first call. This is due to + * file circulation. A caller must deal with that. -- rgerhards, 2008-01-30 + */ +rsRetVal +strmGetCurrOffset(strm_t *pThis, size_t *pOffs) +{ + DEFiRet; + + ISOBJ_TYPE_assert(pThis, strm); + ASSERT(pOffs != NULL); + + *pOffs = pThis->iCurrOffs; + + RETiRet; +} + + /* Initialize the stream class. Must be called as the very first method * before anything else is called inside this class. * rgerhards, 2008-01-09 |