mirror of
https://github.com/simon987/sist2.git
synced 2025-12-13 07:19:06 +00:00
bugfixes & refactoring
This commit is contained in:
41
src/cli.h
Normal file
41
src/cli.h
Normal file
@@ -0,0 +1,41 @@
|
||||
#ifndef SIST2_CLI_H
|
||||
#define SIST2_CLI_H
|
||||
|
||||
#include "sist.h"
|
||||
|
||||
typedef struct scan_args {
|
||||
float quality;
|
||||
int size;
|
||||
int content_size;
|
||||
int threads;
|
||||
char *incremental;
|
||||
char *output;
|
||||
char *rewrite_url;
|
||||
char *name;
|
||||
char *path;
|
||||
} scan_args_t;
|
||||
|
||||
typedef struct index_args {
|
||||
char *es_url;
|
||||
const char *index_path;
|
||||
int print;
|
||||
int force_reset;
|
||||
} index_args_t;
|
||||
|
||||
typedef struct web_args {
|
||||
char *es_url;
|
||||
char *bind;
|
||||
char *port;
|
||||
int index_count;
|
||||
const char **indices;
|
||||
} web_args_t;
|
||||
|
||||
scan_args_t *scan_args_create();
|
||||
index_args_t *index_args_create();
|
||||
web_args_t *web_args_create();
|
||||
|
||||
int scan_args_validate(scan_args_t *args, int argc, const char **argv);
|
||||
int index_args_validate(index_args_t *args, int argc, const char **argv);
|
||||
int web_args_validate(web_args_t *args, int argc, const char **argv);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user