mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
31 lines
633 B
C
31 lines
633 B
C
|
|
#ifndef __PROTOCOL_H
|
|
#define __PROTOCOL_H
|
|
|
|
#include <png.h>
|
|
|
|
#include "guacio.h"
|
|
|
|
typedef struct guac_message {
|
|
|
|
char* opcode;
|
|
|
|
int argc;
|
|
char** argv;
|
|
|
|
} guac_message;
|
|
|
|
|
|
void guac_free_message(guac_message* message);
|
|
char* guac_escape_string(const char* str);
|
|
void guac_send_name(GUACIO* io, const char* name);
|
|
void guac_send_size(GUACIO* io, int w, int h);
|
|
void guac_send_copy(GUACIO* io, int srcx, int srcy, int w, int h, int dstx, int dsty);
|
|
void guac_send_png(GUACIO* io, int x, int y, png_byte** png_rows, int w, int h);
|
|
|
|
int guac_messages_waiting(GUACIO* io);
|
|
guac_message* guac_read_message(GUACIO* io);
|
|
|
|
#endif
|
|
|