2019-12-09 04:35:19 +08:00
|
|
|
#ifndef SCRCPY_CLI_H
|
|
|
|
#define SCRCPY_CLI_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
#include "scrcpy.h"
|
|
|
|
|
|
|
|
struct scrcpy_cli_args {
|
|
|
|
struct scrcpy_options opts;
|
|
|
|
bool help;
|
|
|
|
bool version;
|
|
|
|
};
|
|
|
|
|
|
|
|
void
|
|
|
|
scrcpy_print_usage(const char *arg0);
|
|
|
|
|
|
|
|
bool
|
|
|
|
scrcpy_parse_args(struct scrcpy_cli_args *args, int argc, char *argv[]);
|
|
|
|
|
2020-07-17 06:00:42 +08:00
|
|
|
#ifdef SC_TEST
|
|
|
|
bool
|
|
|
|
sc_parse_shortcut_mods(const char *s, struct sc_shortcut_mods *mods);
|
|
|
|
#endif
|
|
|
|
|
2019-12-09 04:35:19 +08:00
|
|
|
#endif
|