2005-03-15 01:29:04 +00:00
|
|
|
#include <lladd/transactional.h>
|
|
|
|
|
|
|
|
typedef struct ringBufferLog_s ringBufferLog_t;
|
|
|
|
|
|
|
|
ringBufferLog_t * openLogRingBuffer(size_t size, lsn_t initialOffset);
|
|
|
|
void closeLogRingBuffer(ringBufferLog_t * log);
|
|
|
|
int ringBufferAppend(ringBufferLog_t * log, byte * dat, size_t size);
|
|
|
|
int ringBufferTruncateRead(byte * buf, ringBufferLog_t * log,size_t size);
|
2005-03-15 05:30:57 +00:00
|
|
|
lsn_t ringBufferAppendPosition(ringBufferLog_t * log);
|
|
|
|
lsn_t ringBufferReadPosition(ringBufferLog_t * log);
|