Add stubs for file/blob/end handling.

This commit is contained in:
Michael Jumper 2013-09-26 22:27:18 -07:00
parent daa10be990
commit a6bd9200e1
2 changed files with 42 additions and 0 deletions

View File

@ -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;

View File

@ -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