mirror of
https://github.com/simon987/sist2.git
synced 2025-04-19 10:16:42 +00:00
* extract scan code to libscan, (wip) * submodules * replace curl with mongoose (wip) * replace onion with mongoose (wip) * replace onion with mongoose (wip) * It compiles! (I think) * Update readme * Entirely remove libonion (WIP) * unscramble submodules * recover screenshot * Update mappings * Bug fixes * update * media meta fix * memory fixes * More bug fixes... * Bug fix w/ libmagic & vfile * libmagic fix (again) * Better lightbox, better video handler, random reloads fix * Use svg for info icon * re-enable http auth * mobi support #41, fix logs * Update README & cleanup
26 lines
526 B
C
26 lines
526 B
C
#ifndef SIST2_TYPES_H
|
|
#define SIST2_TYPES_H
|
|
|
|
#define INDEX_TYPE_BIN "binary"
|
|
#define INDEX_TYPE_JSON "json"
|
|
#define INDEX_VERSION_EXTERNAL "_external_v1"
|
|
|
|
typedef struct index_descriptor {
|
|
char uuid[UUID_STR_LEN];
|
|
char version[64];
|
|
long timestamp;
|
|
char root[PATH_MAX];
|
|
char rewrite_url[8196];
|
|
short root_len;
|
|
char name[1024];
|
|
char type[64];
|
|
} index_descriptor_t;
|
|
|
|
typedef struct index_t {
|
|
struct index_descriptor desc;
|
|
struct store_t *store;
|
|
char path[PATH_MAX];
|
|
} index_t;
|
|
|
|
#endif
|