2007-06-11 21:36:57 +00:00
|
|
|
#include <stasis/transactional.h>
|
2011-06-13 06:58:34 +00:00
|
|
|
#include <stasis/experimental/ringbuffer.h>
|
|
|
|
#include <stasis/experimental/consumer.h>
|
2007-06-11 21:36:57 +00:00
|
|
|
#include <stasis/iterator.h>
|
2011-06-13 06:58:34 +00:00
|
|
|
#include <stasis/experimental/fifo.h>
|
2005-03-10 03:19:04 +00:00
|
|
|
|
2005-03-15 05:30:57 +00:00
|
|
|
#ifndef __LOGMEMORY_H
|
|
|
|
#define __LOGMEMORY_H
|
|
|
|
|
2005-03-17 04:38:55 +00:00
|
|
|
/**
|
|
|
|
@file
|
2005-03-10 03:19:04 +00:00
|
|
|
|
2005-03-17 04:38:55 +00:00
|
|
|
A poorly named in-memory fifo based on ringbuffer.h
|
2005-03-14 00:25:29 +00:00
|
|
|
|
2005-03-17 04:38:55 +00:00
|
|
|
@todo Move this all to some reasonably named interface. :)
|
2005-03-14 00:25:29 +00:00
|
|
|
|
2005-03-17 04:38:55 +00:00
|
|
|
$Id$
|
|
|
|
*/
|
2005-03-14 00:25:29 +00:00
|
|
|
|
2005-03-15 05:30:57 +00:00
|
|
|
lladdFifo_t * logMemoryFifo(size_t size, lsn_t initialOffset);
|
|
|
|
|
2005-03-23 08:07:53 +00:00
|
|
|
void logMemory_consumer_close(int xid, void *it);
|
|
|
|
int logMemory_consumer_push (int xid, void * it, byte * key, size_t keySize, byte * val, size_t valSize);
|
2005-03-15 05:30:57 +00:00
|
|
|
void logMemory_Iterator_close(int xid, void * impl);
|
2011-06-12 08:13:34 +00:00
|
|
|
int logMemory_Iterator_next(int xid, void * impl);
|
|
|
|
int logMemory_Iterator_tryNext(int xid, void * impl);
|
|
|
|
int logMemory_Iterator_key (int xid, void * impl, byte ** key);
|
|
|
|
int logMemory_Iterator_value (int xid, void * impl, byte ** value);
|
|
|
|
void logMemory_Iterator_releaseTuple(int xid, void *it);
|
|
|
|
void logMemory_Iterator_releaseLock (int xid, void * impl);
|
2011-06-13 06:58:34 +00:00
|
|
|
|
|
|
|
void stasis_logMemory_init();
|
2005-03-15 05:30:57 +00:00
|
|
|
#endif
|