mirror of
https://github.com/Genymobile/scrcpy.git
synced 2025-07-06 09:01:41 +00:00
Factorize --list- options handling
This will limit code duplication as more list options will be added. PR #4213 <https://github.com/Genymobile/scrcpy/pull/4213>
This commit is contained in:
parent
a2fb1b40f6
commit
f085765e04
8 changed files with 17 additions and 15 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue