mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-07-31 05:08:59 +00:00
Define default options as const struct
This is more readable than a macro, and we could ifdef some fields.
This commit is contained in:
parent
e4d5c1ce36
commit
27fa23846d
5 changed files with 60 additions and 55 deletions
|
@ -8,7 +8,7 @@
|
|||
|
||||
static void test_flag_version(void) {
|
||||
struct scrcpy_cli_args args = {
|
||||
.opts = SCRCPY_OPTIONS_DEFAULT,
|
||||
.opts = scrcpy_options_default,
|
||||
.help = false,
|
||||
.version = false,
|
||||
};
|
||||
|
@ -23,7 +23,7 @@ static void test_flag_version(void) {
|
|||
|
||||
static void test_flag_help(void) {
|
||||
struct scrcpy_cli_args args = {
|
||||
.opts = SCRCPY_OPTIONS_DEFAULT,
|
||||
.opts = scrcpy_options_default,
|
||||
.help = false,
|
||||
.version = false,
|
||||
};
|
||||
|
@ -38,7 +38,7 @@ static void test_flag_help(void) {
|
|||
|
||||
static void test_options(void) {
|
||||
struct scrcpy_cli_args args = {
|
||||
.opts = SCRCPY_OPTIONS_DEFAULT,
|
||||
.opts = scrcpy_options_default,
|
||||
.help = false,
|
||||
.version = false,
|
||||
};
|
||||
|
@ -100,7 +100,7 @@ static void test_options(void) {
|
|||
|
||||
static void test_options2(void) {
|
||||
struct scrcpy_cli_args args = {
|
||||
.opts = SCRCPY_OPTIONS_DEFAULT,
|
||||
.opts = scrcpy_options_default,
|
||||
.help = false,
|
||||
.version = false,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue