Group scrcpy options into a struct

The scrcpy() function accepts as many parameters as there are options.

To simplify, group all options in a separate struct.
This commit is contained in:
Romain Vimont
2018-03-21 14:04:13 +01:00
parent b449c09442
commit b13d25b9f4
3 changed files with 18 additions and 4 deletions

View File

@@ -3,6 +3,13 @@
#include <SDL2/SDL_stdinc.h>
SDL_bool scrcpy(const char *serial, Uint16 local_port, Uint16 max_size, Uint32 bit_rate);
struct scrcpy_options {
const char *serial;
Uint16 port;
Uint16 max_size;
Uint32 bit_rate;
};
SDL_bool scrcpy(const struct scrcpy_options *options);
#endif