Factorize --list- options handling

This will limit code duplication as more list options will be added.
This commit is contained in:
Romain Vimont
2023-10-24 23:54:56 +02:00
parent c191e9a46e
commit 8c96ab130e
8 changed files with 17 additions and 15 deletions

View File

@@ -179,9 +179,10 @@ struct scrcpy_options {
bool video;
bool audio;
bool require_audio;
bool list_encoders;
bool list_displays;
bool kill_adb_on_close;
#define SC_OPTION_LIST_ENCODERS 0x1
#define SC_OPTION_LIST_DISPLAYS 0x2
uint8_t list;
};
extern const struct scrcpy_options scrcpy_options_default;