Fix includes. Add handlers.

This commit is contained in:
Michael Jumper 2013-05-30 16:35:23 -07:00
parent 365c314705
commit 05a9a7524a
2 changed files with 17 additions and 1 deletions

View File

@ -35,6 +35,12 @@
* *
* ***** END LICENSE BLOCK ***** */ * ***** END LICENSE BLOCK ***** */
#include <stdlib.h>
#include <guacamole/client.h>
#include "guac_handlers.h"
/* Client plugin arguments */ /* Client plugin arguments */
const char* GUAC_CLIENT_ARGS[] = { const char* GUAC_CLIENT_ARGS[] = {
NULL NULL
@ -53,6 +59,13 @@ int guac_client_init(guac_client* client, int argc, char** argv) {
return -1; 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; return 0;
} }

View File

@ -35,6 +35,9 @@
* *
* ***** END LICENSE BLOCK ***** */ * ***** END LICENSE BLOCK ***** */
#include <guacamole/client.h>
int spice_guac_client_handle_messages(guac_client* client) { int spice_guac_client_handle_messages(guac_client* client) {
/* STUB */ /* STUB */
return 0; return 0;
@ -55,7 +58,7 @@ int spice_guac_client_clipboard_handler(guac_client* client, char* data) {
return 0; 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 */ /* STUB */
return 0; return 0;
} }