Initial connect instruction support, connection UUIDs

This commit is contained in:
Michael Jumper
2010-09-17 22:05:23 -07:00
parent 0630e69668
commit 60d78e22c7
9 changed files with 98 additions and 25 deletions

View File

@@ -21,6 +21,7 @@
#define _CLIENT_H
#include <png.h>
#include <uuid/uuid.h>
#include "guacio.h"
@@ -46,6 +47,12 @@ typedef void guac_client_free_handler(void* client);
*/
struct guac_client {
/**
* UUID identifying this client. Useful when identifying a client
* for connection handoff/resume.
*/
uuid_t uuid;
/**
* The GUACIO structure to be used to communicate with the web-client. It is
* expected that the implementor of any Guacamole proxy client will provide

View File

@@ -21,6 +21,7 @@
#define __PROTOCOL_H
#include <png.h>
#include <uuid/uuid.h>
#include "guacio.h"
@@ -40,6 +41,7 @@ char* guac_unescape_string_inplace(char* str);
void guac_send_name(GUACIO* io, const char* name);
void guac_send_error(GUACIO* io, const char* error);
void guac_send_clipboard(GUACIO* io, const char* data);
void guac_send_uuid(GUACIO* io, uuid_t uuid);
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);