33#ifndef _SIR_FILECACHE_H_INCLUDED
34# define _SIR_FILECACHE_H_INCLUDED
36# include "sir/types.h"
38typedef bool (*sir_fcache_pred)(
const void* match,
const sirfile* iter);
46void _sirfile_close(
sirfile* sf);
47bool _sirfile_write(
sirfile* sf,
const char* output);
48bool _sirfile_writeheader(
sirfile* sf,
const char* msg);
49bool _sirfile_needsroll(
sirfile* sf);
50bool _sirfile_roll(
sirfile* sf,
char** newpath);
51void _sirfile_rollifneeded(
sirfile* sf);
52bool _sirfile_archive(
sirfile* sf,
const char* newpath);
53bool _sirfile_splitpath(
const sirfile* sf,
char** name,
char** ext);
54void _sirfile_destroy(
sirfile** sf);
55bool _sirfile_validate(
const sirfile* sf);
62void _sir_fcache_shift(
sirfcache* sfc,
size_t idx);
64bool _sir_fcache_pred_path(
const void* match,
const sirfile* iter);
65bool _sir_fcache_pred_id(
const void* match,
const sirfile* iter);
66sirfile* _sir_fcache_find(
const sirfcache* sfc,
const void* match, sir_fcache_pred pred);
70 size_t* dispatched,
size_t* wanted);
72void _sir_fflush(FILE* f);
uint16_t sir_level
The sir_level type.
Definition types.h:71
uint32_t sirfileid
Log file identifier type.
Definition types.h:49
uint16_t sir_levels
sir_level bitmask type.
Definition types.h:74
uint32_t sir_options
sir_option bitmask type.
Definition types.h:96
Encapsulates dynamic updating of current configuration.
Definition types.h:478
Formatted output container.
Definition types.h:412
Log file cache.
Definition types.h:323
Internally-used log file data.
Definition types.h:313