diff --git a/src/libguac/client-handlers.c b/src/libguac/client-handlers.c index bc203772..ee3475c8 100644 --- a/src/libguac/client-handlers.c +++ b/src/libguac/client-handlers.c @@ -51,6 +51,9 @@ __guac_instruction_handler_mapping __guac_instruction_handler_map[] = { {"clipboard", __guac_handle_clipboard}, {"disconnect", __guac_handle_disconnect}, {"size", __guac_handle_size}, + {"file", __guac_handle_file}, + {"blob", __guac_handle_blob}, + {"end", __guac_handle_end}, {NULL, NULL} }; @@ -126,6 +129,24 @@ int __guac_handle_size(guac_client* client, guac_instruction* instruction) { return 0; } +int __guac_handle_file(guac_client* client, guac_instruction* instruction) { + /* STUB */ + guac_client_log_info(client, "STUB: file"); + return 0; +} + +int __guac_handle_blob(guac_client* client, guac_instruction* instruction) { + /* STUB */ + guac_client_log_info(client, "STUB: blob"); + return 0; +} + +int __guac_handle_end(guac_client* client, guac_instruction* instruction) { + /* STUB */ + guac_client_log_info(client, "STUB: end"); + return 0; +} + int __guac_handle_disconnect(guac_client* client, guac_instruction* instruction) { /* Return error code to force disconnect */ return -1; diff --git a/src/libguac/client-handlers.h b/src/libguac/client-handlers.h index 24f9c631..28ac7fa2 100644 --- a/src/libguac/client-handlers.h +++ b/src/libguac/client-handlers.h @@ -99,6 +99,27 @@ int __guac_handle_key(guac_client* client, guac_instruction* instruction); */ int __guac_handle_clipboard(guac_client* client, guac_instruction* instruction); +/** + * Internal initial handler for the file instruction. When a file instruction + * is received, this handler will be called. The client's file handler will + * be invoked if defined. + */ +int __guac_handle_file(guac_client* client, guac_instruction* instruction); + +/** + * Internal initial handler for the blob instruction. When a blob instruction + * is received, this handler will be called. The client's blob handler will + * be invoked if defined. + */ +int __guac_handle_blob(guac_client* client, guac_instruction* instruction); + +/** + * Internal initial handler for the end instruction. When a end instruction + * is received, this handler will be called. The client's end handler will + * be invoked if defined. + */ +int __guac_handle_end(guac_client* client, guac_instruction* instruction); + /** * Internal initial handler for the size instruction. When a size instruction * is received, this handler will be called. The client's size handler will