Skip to content

File SolidSyslogStoreDefinition.h

File List > Core > Interface > SolidSyslogStoreDefinition.h

Go to the documentation of this file

#ifndef SOLIDSYSLOGSTOREDEFINITION_H
#define SOLIDSYSLOGSTOREDEFINITION_H

#include <stdbool.h>
#include <stddef.h>

#include "ExternC.h"

EXTERN_C_BEGIN

    struct SolidSyslogStore
    {
        bool (*Write)(struct SolidSyslogStore* base, const void* data, size_t size);
        bool (*ReadNextUnsent)(struct SolidSyslogStore* base, void* data, size_t maxSize, size_t* bytesRead);
        void (*MarkSent)(struct SolidSyslogStore* base);
        bool (*HasUnsent)(struct SolidSyslogStore* base);
        bool (*IsHalted)(struct SolidSyslogStore* base);
        size_t (*GetTotalBytes)(struct SolidSyslogStore* base);
        size_t (*GetUsedBytes)(struct SolidSyslogStore* base);
        bool (*IsTransient)(struct SolidSyslogStore* base);
    };

EXTERN_C_END

#endif /* SOLIDSYSLOGSTOREDEFINITION_H */