File SolidSyslogBlockDeviceDefinition.h¶
File List > Core > Interface > SolidSyslogBlockDeviceDefinition.h
Go to the documentation of this file
#ifndef SOLIDSYSLOGBLOCKDEVICEDEFINITION_H
#define SOLIDSYSLOGBLOCKDEVICEDEFINITION_H
#include <stdbool.h>
#include <stddef.h>
#include "ExternC.h"
EXTERN_C_BEGIN
struct SolidSyslogBlockDevice
{
bool (*Acquire)(struct SolidSyslogBlockDevice* base, size_t blockIndex);
bool (*Dispose)(struct SolidSyslogBlockDevice* base, size_t blockIndex);
bool (*Exists)(struct SolidSyslogBlockDevice* base, size_t blockIndex);
bool (*Read)(struct SolidSyslogBlockDevice* base, size_t blockIndex, size_t offset, void* buf, size_t count);
bool (*Append)(struct SolidSyslogBlockDevice* base, size_t blockIndex, const void* buf, size_t count);
bool (*WriteAt)(
struct SolidSyslogBlockDevice* base,
size_t blockIndex,
size_t offset,
const void* buf,
size_t count
);
size_t (*Size)(struct SolidSyslogBlockDevice* base, size_t blockIndex);
size_t (*GetBlockSize)(struct SolidSyslogBlockDevice* base);
};
EXTERN_C_END
#endif /* SOLIDSYSLOGBLOCKDEVICEDEFINITION_H */