From 05a9a7524aa31e505c644507a78ea8d437dbd86c Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Thu, 30 May 2013 16:35:23 -0700 Subject: [PATCH] Fix includes. Add handlers. --- protocols/spice/src/client.c | 13 +++++++++++++ protocols/spice/src/guac_handlers.c | 5 ++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/protocols/spice/src/client.c b/protocols/spice/src/client.c index 7e0da9a3..0e869080 100644 --- a/protocols/spice/src/client.c +++ b/protocols/spice/src/client.c @@ -35,6 +35,12 @@ * * ***** END LICENSE BLOCK ***** */ +#include + +#include + +#include "guac_handlers.h" + /* Client plugin arguments */ const char* GUAC_CLIENT_ARGS[] = { NULL @@ -53,6 +59,13 @@ int guac_client_init(guac_client* client, int argc, char** argv) { return -1; } + /* Set handlers */ + client->handle_messages = spice_guac_client_handle_messages; + client->clipboard_handler = spice_guac_client_clipboard_handler; + client->key_handler = spice_guac_client_key_handler; + client->mouse_handler = spice_guac_client_mouse_handler; + client->size_handler = spice_guac_client_size_handler; + client->free_handler = spice_guac_client_free_handler; return 0; } diff --git a/protocols/spice/src/guac_handlers.c b/protocols/spice/src/guac_handlers.c index 22a37e9e..01899880 100644 --- a/protocols/spice/src/guac_handlers.c +++ b/protocols/spice/src/guac_handlers.c @@ -35,6 +35,9 @@ * * ***** END LICENSE BLOCK ***** */ +#include + + int spice_guac_client_handle_messages(guac_client* client) { /* STUB */ return 0; @@ -55,7 +58,7 @@ int spice_guac_client_clipboard_handler(guac_client* client, char* data) { return 0; } -int spice_guac_client_size_handler(guac_client* client, int width, int height); +int spice_guac_client_size_handler(guac_client* client, int width, int height) { /* STUB */ return 0; }