From 376fbe64aba8c7cfbcf8d9b41a6e0217acbb61f5 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Tue, 17 Jul 2012 22:57:46 -0700 Subject: [PATCH] Added handlers. --- libguac/include/client.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/libguac/include/client.h b/libguac/include/client.h index 028a89d0..583c8a84 100644 --- a/libguac/include/client.h +++ b/libguac/include/client.h @@ -122,6 +122,18 @@ typedef void guac_client_log_handler(guac_client* client, const char* format, va */ typedef int guac_client_init_handler(guac_client* client, int argc, char** argv); +/** + * Handler which will be called whenever a resource is being exposed. + */ +typedef int guac_client_resource_handler(guac_client* client, + guac_resource* resource); + +/** + * Handler which will be called whenever a valid resource is selected. + */ +typedef int guac_client_stream_handler(guac_client* client, + guac_resource* resource); + /** * The flag set in the mouse button mask when the left mouse button is down. */