mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
31 lines
665 B
C
31 lines
665 B
C
|
|
#ifndef __PROTOCOL_H
|
|
#define __PROTOCOL_H
|
|
|
|
#include <png.h>
|
|
|
|
#include "guacio.h"
|
|
|
|
typedef struct guac_instruction {
|
|
|
|
char* opcode;
|
|
|
|
int argc;
|
|
char** argv;
|
|
|
|
} guac_instruction;
|
|
|
|
|
|
void guac_free_instruction(guac_instruction* instruction);
|
|
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_instructions_waiting(GUACIO* io);
|
|
guac_instruction* guac_read_instruction(GUACIO* io);
|
|
|
|
#endif
|
|
|