mirror of
https://github.com/simon987/sist2.git
synced 2025-04-20 02:36:43 +00:00
54 lines
810 B
C
54 lines
810 B
C
#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 depth;
|
|
archive_mode_t archive_mode;
|
|
int verbose;
|
|
int very_verbose;
|
|
|
|
size_t stat_tn_size;
|
|
size_t stat_index_size;
|
|
|
|
GHashTable *original_table;
|
|
GHashTable *copy_table;
|
|
|
|
pthread_mutex_t mupdf_mu;
|
|
char * tesseract_lang;
|
|
char * tesseract_path;
|
|
} ScanCtx;
|
|
|
|
struct {
|
|
int verbose;
|
|
int very_verbose;
|
|
int no_color;
|
|
} LogCtx;
|
|
|
|
struct {
|
|
char *es_url;
|
|
int batch_size;
|
|
} IndexCtx;
|
|
|
|
struct {
|
|
char *es_url;
|
|
int index_count;
|
|
char *b64credentials;
|
|
struct index_t indices[16];
|
|
} WebCtx;
|
|
|
|
|
|
#endif
|