Define default options as const struct

This is more readable than a macro, and we could ifdef some fields.
This commit is contained in:
Romain Vimont
2021-10-27 18:43:47 +02:00
parent e4d5c1ce36
commit 27fa23846d
5 changed files with 60 additions and 55 deletions

View File

@@ -48,7 +48,7 @@ main(int argc, char *argv[]) {
#endif
struct scrcpy_cli_args args = {
.opts = SCRCPY_OPTIONS_DEFAULT,
.opts = scrcpy_options_default,
.help = false,
.version = false,
};