Fix includes. Add handlers.
This commit is contained in:
parent
365c314705
commit
05a9a7524a
@ -35,6 +35,12 @@
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <guacamole/client.h>
|
||||
|
||||
#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;
|
||||
}
|
||||
|
@ -35,6 +35,9 @@
|
||||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
#include <guacamole/client.h>
|
||||
|
||||
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user