2018-02-08 11:14:13 +01:00
|
|
|
#ifndef SCRCPY_H
|
|
|
|
#define SCRCPY_H
|
2017-12-12 15:12:07 +01:00
|
|
|
|
2017-12-15 17:34:16 +01:00
|
|
|
#include <SDL2/SDL_stdinc.h>
|
2019-02-09 15:20:07 +01:00
|
|
|
#include <recorder.h>
|
2017-12-12 15:12:07 +01:00
|
|
|
|
2018-03-21 14:04:13 +01:00
|
|
|
struct scrcpy_options {
|
|
|
|
const char *serial;
|
2018-08-09 19:12:27 +02:00
|
|
|
const char *crop;
|
2018-11-11 14:03:29 +01:00
|
|
|
const char *record_filename;
|
2019-02-09 15:20:07 +01:00
|
|
|
enum recorder_format record_format;
|
2018-03-21 14:04:13 +01:00
|
|
|
Uint16 port;
|
|
|
|
Uint16 max_size;
|
|
|
|
Uint32 bit_rate;
|
2018-03-25 15:23:00 +02:00
|
|
|
SDL_bool show_touches;
|
2018-09-04 15:55:20 +02:00
|
|
|
SDL_bool fullscreen;
|
2019-01-27 19:04:22 +08:00
|
|
|
SDL_bool always_on_top;
|
2019-02-01 22:53:24 +01:00
|
|
|
SDL_bool no_window;
|
2018-03-21 14:04:13 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
SDL_bool scrcpy(const struct scrcpy_options *options);
|
2017-12-12 15:12:07 +01:00
|
|
|
|
|
|
|
#endif
|