libguac  0.9.7
client-fntypes.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2014 Glyptodon LLC
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining a copy
5  * of this software and associated documentation files (the "Software"), to deal
6  * in the Software without restriction, including without limitation the rights
7  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8  * copies of the Software, and to permit persons to whom the Software is
9  * furnished to do so, subject to the following conditions:
10  *
11  * The above copyright notice and this permission notice shall be included in
12  * all copies or substantial portions of the Software.
13  *
14  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20  * THE SOFTWARE.
21  */
22 
23 #ifndef _GUAC_CLIENT_FNTYPES_H
24 #define _GUAC_CLIENT_FNTYPES_H
25 
33 #include "client-types.h"
34 #include "protocol-types.h"
35 #include "stream-types.h"
36 
37 #include <stdarg.h>
38 
44 
48 typedef int guac_client_mouse_handler(guac_client* client, int x, int y, int button_mask);
49 
53 typedef int guac_client_key_handler(guac_client* client, int keysym, int pressed);
54 
59  char* mimetype);
64  int width, int height);
65 
69 typedef int guac_client_file_handler(guac_client* client, guac_stream* stream,
70  char* mimetype, char* filename);
71 
75 typedef int guac_client_pipe_handler(guac_client* client, guac_stream* stream,
76  char* mimetype, char* name);
77 
81 typedef int guac_client_blob_handler(guac_client* client, guac_stream* stream,
82  void* data, int length);
83 
87 typedef int guac_client_ack_handler(guac_client* client, guac_stream* stream,
88  char* error, guac_protocol_status status);
89 
93 typedef int guac_client_end_handler(guac_client* client, guac_stream* stream);
94 
98 typedef int guac_client_audio_handler(guac_client* client, char* mimetype);
99 
103 typedef int guac_client_video_handler(guac_client* client, char* mimetype);
104 
110 
114 typedef void guac_client_log_handler(guac_client* client, guac_client_log_level level, const char* format, va_list args);
115 
119 typedef int guac_client_init_handler(guac_client* client, int argc, char** argv);
120 
121 #endif
122 
int guac_client_end_handler(guac_client *client, guac_stream *stream)
Handler for Guacamole stream end events.
Definition: client-fntypes.h:93
int guac_client_audio_handler(guac_client *client, char *mimetype)
Handler for Guacamole audio format events.
Definition: client-fntypes.h:98
int guac_client_blob_handler(guac_client *client, guac_stream *stream, void *data, int length)
Handler for Guacamole stream blob events.
Definition: client-fntypes.h:81
Type definitions related to Guacamole protocol streams.
int guac_client_size_handler(guac_client *client, int width, int height)
Handler for Guacamole screen size events.
Definition: client-fntypes.h:63
Type definitions related to the Guacamole client structure, guac_client.
int guac_client_file_handler(guac_client *client, guac_stream *stream, char *mimetype, char *filename)
Handler for Guacamole file transfer events.
Definition: client-fntypes.h:69
int guac_client_pipe_handler(guac_client *client, guac_stream *stream, char *mimetype, char *name)
Handler for Guacamole pipe events.
Definition: client-fntypes.h:75
int guac_client_key_handler(guac_client *client, int keysym, int pressed)
Handler for Guacamole key events.
Definition: client-fntypes.h:53
int guac_client_free_handler(guac_client *client)
Handler for freeing up any extra data allocated by the client implementation.
Definition: client-fntypes.h:109
int guac_client_ack_handler(guac_client *client, guac_stream *stream, char *error, guac_protocol_status status)
Handler for Guacamole stream ack events.
Definition: client-fntypes.h:87
int guac_client_clipboard_handler(guac_client *client, guac_stream *stream, char *mimetype)
Handler for Guacamole clipboard events.
Definition: client-fntypes.h:58
int guac_client_video_handler(guac_client *client, char *mimetype)
Handler for Guacamole video format events.
Definition: client-fntypes.h:103
int guac_client_init_handler(guac_client *client, int argc, char **argv)
Handler which should initialize the given guac_client.
Definition: client-fntypes.h:119
Type definitions related to the Guacamole protocol.
int guac_client_mouse_handler(guac_client *client, int x, int y, int button_mask)
Handler for Guacamole mouse events.
Definition: client-fntypes.h:48
Guacamole proxy client.
Definition: client.h:85
guac_protocol_status
Set of all possible status codes returned by protocol operations.
Definition: protocol-types.h:47
Represents a single stream within the Guacamole protocol.
Definition: stream.h:35
void guac_client_log_handler(guac_client *client, guac_client_log_level level, const char *format, va_list args)
Handler for logging messages.
Definition: client-fntypes.h:114
int guac_client_handle_messages(guac_client *client)
Handler for server messages (where "server" refers to the server that the proxy client is connected t...
Definition: client-fntypes.h:43
guac_client_log_level
All supported log levels used by the logging subsystem of each Guacamole client.
Definition: client-types.h:65