mirror of
https://github.com/simon987/sist2.git
synced 2025-12-14 07:49:06 +00:00
Initial commit (squashed)
This commit is contained in:
39
src/ctx.h
Normal file
39
src/ctx.h
Normal file
@@ -0,0 +1,39 @@
|
||||
#ifndef SIST2_CTX_H
|
||||
#define SIST2_CTX_H
|
||||
|
||||
#include "sist.h"
|
||||
|
||||
struct {
|
||||
struct index_t index;
|
||||
|
||||
GHashTable *mime_table;
|
||||
GHashTable *ext_table;
|
||||
|
||||
tpool_t *pool;
|
||||
|
||||
int tn_size;
|
||||
int threads;
|
||||
int content_size;
|
||||
float tn_qscale;
|
||||
|
||||
int stat_tn_size;
|
||||
int stat_index_size;
|
||||
|
||||
GHashTable *original_table;
|
||||
GHashTable *copy_table;
|
||||
} ScanCtx;
|
||||
|
||||
|
||||
struct {
|
||||
char *es_url;
|
||||
} IndexCtx;
|
||||
|
||||
struct {
|
||||
char *es_url;
|
||||
int index_count;
|
||||
struct index_t indices[16];
|
||||
} WebCtx;
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user