Struct SolidSyslogBlockStoreConfig¶
ClassList > SolidSyslogBlockStoreConfig
#include <SolidSyslogBlockStore.h>
struct SolidSyslogBlockStoreConfig
{
struct SolidSyslogBlockDevice* BlockDevice;
size_t MaxBlocks;
enum SolidSyslogDiscardPolicy DiscardPolicy;
struct SolidSyslogSecurityPolicy* SecurityPolicy;
SolidSyslogStoreFullCallback OnStoreFull;
void* StoreFullContext;
SolidSyslogStoreThresholdFunction GetCapacityThreshold;
SolidSyslogStoreThresholdCallback OnThresholdCrossed;
void* ThresholdContext;
};
Detailed Description¶
Wiring for SolidSyslogBlockStore_Create.
The threshold function and callback are only active when both are set; each callback's context is passed back unchanged. Every injected object is caller-owned and must outlive the store; Destroy releases only the store's own slot.
Public Attributes Documentation¶
BlockDevice¶
Required; block store is the sole writer.
DiscardPolicy¶
GetCapacityThreshold¶
MaxBlocks¶
Retention ceiling in blocks; DiscardPolicy governs the overflow.
OnStoreFull¶
OnThresholdCrossed¶
SecurityPolicy¶
Optional: no per-record integrity trailer when NULL.
StoreFullContext¶
ThresholdContext¶
Shared by GetCapacityThreshold and OnThresholdCrossed.
The documentation for this class was generated from the following file Core/Interface/SolidSyslogBlockStore.h