mirror of
https://github.com/sist2app/sist2.git
synced 2026-01-17 08:26:29 +00:00
26 lines
515 B
C
26 lines
515 B
C
#ifndef SIST2_TYPES_H
|
|
#define SIST2_TYPES_H
|
|
|
|
#define INDEX_TYPE_NDJSON "ndjson"
|
|
|
|
typedef struct index_descriptor {
|
|
char id[MD5_STR_LENGTH];
|
|
char version[64];
|
|
long timestamp;
|
|
char root[PATH_MAX];
|
|
char rewrite_url[8192];
|
|
short root_len;
|
|
char name[1024];
|
|
char type[64];
|
|
} index_descriptor_t;
|
|
|
|
typedef struct index_t {
|
|
struct index_descriptor desc;
|
|
struct store_t *store;
|
|
struct store_t *tag_store;
|
|
struct store_t *meta_store;
|
|
char path[PATH_MAX];
|
|
} index_t;
|
|
|
|
#endif
|