mirror of
https://github.com/simon987/sist2.git
synced 2025-12-13 23:39:04 +00:00
use sqlite to save index, major thread pool refactor
This commit is contained in:
14
src/types.h
14
src/types.h
@@ -1,24 +1,26 @@
|
||||
#ifndef SIST2_TYPES_H
|
||||
#define SIST2_TYPES_H
|
||||
|
||||
#define INDEX_TYPE_NDJSON "ndjson"
|
||||
typedef struct database database_t;
|
||||
|
||||
typedef struct index_descriptor {
|
||||
char id[SIST_INDEX_ID_LEN];
|
||||
char version[64];
|
||||
int version_major;
|
||||
int version_minor;
|
||||
int version_patch;
|
||||
long timestamp;
|
||||
char root[PATH_MAX];
|
||||
char rewrite_url[8192];
|
||||
short root_len;
|
||||
int 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;
|
||||
|
||||
database_t *db;
|
||||
|
||||
char path[PATH_MAX];
|
||||
} index_t;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user