File SolidSyslogStore.h¶
FileList > Core > Interface > SolidSyslogStore.h
#include "SolidSyslogExternC.h"#include "SolidSyslogStoreDefinition.h"#include <stdbool.h>#include <stddef.h>
Detailed Description¶
The store role: retain unsent records (Write) and replay them in order via a read cursor (ReadNextUnsent / MarkSent), so a send failure never drops a stored record - it stays for retry.
These calls dispatch to the injected store's vtable, so behaviour - capacity, discard policy, durability - is that store's.
Public Functions Documentation¶
SolidSyslogStore_GetTotalBytes¶
Configured capacity in bytes.
SolidSyslogStore_GetUsedBytes¶
Bytes currently occupied by retained records.
SolidSyslogStore_HasUnsent¶
SolidSyslogStore_IsTransient¶
SolidSyslogStore_MarkSent¶
Confirm the last ReadNextUnsent delivered and advance the cursor.
SolidSyslogStore_ReadNextUnsent¶
Read the oldest unsent record without consuming it, then MarkSent to advance.
bool SolidSyslogStore_ReadNextUnsent (
struct SolidSyslogStore * store,
void * data,
size_t maxSize,
size_t * bytesRead
)
The two form one read cursor, see SolidSyslogStoreDefinition.h for the protocol.
SolidSyslogStore_Write¶
Retain data (size bytes) as an unsent record, and say what became of it;SolidSyslogStoreDefinition.h states what each outcome implies.
enum SolidSyslogStoreWriteResult SolidSyslogStore_Write (
struct SolidSyslogStore * store,
const void * data,
size_t size
)
The documentation for this class was generated from the following file Core/Interface/SolidSyslogStore.h