2019-12-08 21:35:19 +01:00
|
|
|
#ifndef SCRCPY_CLI_H
|
|
|
|
|
#define SCRCPY_CLI_H
|
|
|
|
|
|
2021-01-08 19:24:51 +01:00
|
|
|
#include "common.h"
|
|
|
|
|
|
2019-12-08 21:35:19 +01:00
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
2021-10-27 18:43:47 +02:00
|
|
|
#include "options.h"
|
2019-12-08 21:35:19 +01:00
|
|
|
|
2023-06-29 21:36:52 +02:00
|
|
|
enum sc_pause_on_exit {
|
|
|
|
|
SC_PAUSE_ON_EXIT_TRUE,
|
|
|
|
|
SC_PAUSE_ON_EXIT_FALSE,
|
|
|
|
|
SC_PAUSE_ON_EXIT_IF_ERROR,
|
|
|
|
|
};
|
|
|
|
|
|
2019-12-08 21:35:19 +01:00
|
|
|
struct scrcpy_cli_args {
|
|
|
|
|
struct scrcpy_options opts;
|
|
|
|
|
bool help;
|
|
|
|
|
bool version;
|
2023-06-29 21:36:52 +02:00
|
|
|
enum sc_pause_on_exit pause_on_exit;
|
2019-12-08 21:35:19 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
scrcpy_print_usage(const char *arg0);
|
|
|
|
|
|
|
|
|
|
bool
|
|
|
|
|
scrcpy_parse_args(struct scrcpy_cli_args *args, int argc, char *argv[]);
|
|
|
|
|
|
2020-07-17 00:00:42 +02:00
|
|
|
#ifdef SC_TEST
|
|
|
|
|
bool
|
2024-03-07 23:07:01 +01:00
|
|
|
sc_parse_shortcut_mods(const char *s, uint8_t *shortcut_mods);
|
2020-07-17 00:00:42 +02:00
|
|
|
#endif
|
|
|
|
|
|
2019-12-08 21:35:19 +01:00
|
|
|
#endif
|