Move command-line parsing to a separate file

This commit is contained in:
Romain Vimont
2019-12-08 21:35:19 +01:00
parent 61274a7cdb
commit d950383b72
4 changed files with 551 additions and 527 deletions

21
app/src/cli.h Normal file
View File

@@ -0,0 +1,21 @@
#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[]);
#endif