Split protocol into own files.

This commit is contained in:
Michael Jumper
2010-09-06 16:39:03 -07:00
parent bf8abcd40e
commit e77c76915a
5 changed files with 193 additions and 162 deletions

View File

@@ -0,0 +1,16 @@
#ifndef __PROTOCOL_H
#define __PROTOCOL_H
#include <png.h>
#include "guacio.h"
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);
#endif