2019-08-25 16:40:59 +00:00
|
|
|
#ifndef _VNC_UTIL_H_
|
|
|
|
#define _VNC_UTIL_H_
|
|
|
|
|
|
|
|
#include <uv.h>
|
|
|
|
#include <unistd.h>
|
|
|
|
|
2019-09-06 18:50:43 +00:00
|
|
|
struct rfb_pixel_format;
|
|
|
|
|
2019-08-25 16:40:59 +00:00
|
|
|
struct vnc_write_request {
|
|
|
|
uv_write_t request;
|
|
|
|
uv_write_cb on_done;
|
|
|
|
uv_buf_t buffer;
|
|
|
|
};
|
|
|
|
|
|
|
|
int vnc__write(uv_stream_t *stream, const void *payload, size_t size,
|
|
|
|
uv_write_cb on_done);
|
|
|
|
|
2019-08-27 22:29:46 +00:00
|
|
|
int rfb_pixfmt_from_fourcc(struct rfb_pixel_format *dst, uint32_t src);
|
|
|
|
|
2019-08-25 16:40:59 +00:00
|
|
|
#endif /* _VNC_UTIL_H_ */
|