mirror of
https://github.com/simon987/sist2.git
synced 2025-12-15 00:09:12 +00:00
wip
This commit is contained in:
11
src/cli.h
11
src/cli.h
@@ -66,6 +66,12 @@ typedef struct index_args {
|
||||
int incremental;
|
||||
} index_args_t;
|
||||
|
||||
typedef struct {
|
||||
char *index_path;
|
||||
char *search_index_path;
|
||||
int optimize_database;
|
||||
} sqlite_index_args_t;
|
||||
|
||||
typedef struct web_args {
|
||||
char *es_url;
|
||||
char *es_index;
|
||||
@@ -102,6 +108,8 @@ typedef struct exec_args {
|
||||
|
||||
index_args_t *index_args_create();
|
||||
|
||||
sqlite_index_args_t *sqlite_index_args_create();
|
||||
|
||||
void index_args_destroy(index_args_t *args);
|
||||
|
||||
web_args_t *web_args_create();
|
||||
@@ -110,6 +118,8 @@ void web_args_destroy(web_args_t *args);
|
||||
|
||||
int index_args_validate(index_args_t *args, int argc, const char **argv);
|
||||
|
||||
int sqlite_index_args_validate(sqlite_index_args_t *args, int argc, const char **argv);
|
||||
|
||||
int web_args_validate(web_args_t *args, int argc, const char **argv);
|
||||
|
||||
exec_args_t *exec_args_create();
|
||||
@@ -118,4 +128,5 @@ void exec_args_destroy(exec_args_t *args);
|
||||
|
||||
int exec_args_validate(exec_args_t *args, int argc, const char **argv);
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user