mirror of
https://github.com/simon987/sist2.git
synced 2025-04-24 12:45:56 +00:00
45 lines
891 B
C
45 lines
891 B
C
#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;
|
|
|
|
scan_args_t *scan_args_create();
|
|
int scan_args_validate(scan_args_t *args, int argc, const char **argv);
|
|
|
|
#ifndef SIST_SCAN_ONLY
|
|
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;
|
|
|
|
index_args_t *index_args_create();
|
|
web_args_t *web_args_create();
|
|
|
|
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
|
|
|
|
#endif
|