libguac  0.9.9
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 "object-types.h"
35 #include "protocol-types.h"
36 #include "stream-types.h"
37 
38 #include <stdarg.h>
39 
45 
49 typedef int guac_client_mouse_handler(guac_client* client, int x, int y, int button_mask);
50 
54 typedef int guac_client_key_handler(guac_client* client, int keysym, int pressed);
55 
60  char* mimetype);
65  int width, int height);
66 
70 typedef int guac_client_file_handler(guac_client* client, guac_stream* stream,
71  char* mimetype, char* filename);
72 
76 typedef int guac_client_pipe_handler(guac_client* client, guac_stream* stream,
77  char* mimetype, char* name);
78 
82 typedef int guac_client_blob_handler(guac_client* client, guac_stream* stream,
83  void* data, int length);
84 
88 typedef int guac_client_ack_handler(guac_client* client, guac_stream* stream,
89  char* error, guac_protocol_status status);
90 
94 typedef int guac_client_end_handler(guac_client* client, guac_stream* stream);
95 
99 typedef int guac_client_get_handler(guac_client* client, guac_object* object,
100  char* name);
101 
105 typedef int guac_client_put_handler(guac_client* client, guac_object* object,
106  guac_stream* stream, char* mimetype, char* name);
107 
111 typedef int guac_client_audio_handler(guac_client* client, char* mimetype);
112 
116 typedef int guac_client_video_handler(guac_client* client, char* mimetype);
117 
123 
127 typedef void guac_client_log_handler(guac_client* client, guac_client_log_level level, const char* format, va_list args);
128 
132 typedef int guac_client_init_handler(guac_client* client, int argc, char** argv);
133 
134 #endif
135 
int guac_client_put_handler(guac_client *client, guac_object *object, guac_stream *stream, char *mimetype, char *name)
Handler for Guacamole object put events.
Definition: client-fntypes.h:105
int guac_client_end_handler(guac_client *client, guac_stream *stream)
Handler for Guacamole stream end events.
Definition: client-fntypes.h:94
int guac_client_audio_handler(guac_client *client, char *mimetype)
Handler for Guacamole audio format events.
Definition: client-fntypes.h:111
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:82
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:64
Type definitions related to Guacamole protocol objects.
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:70
Represents a single object within the Guacamole protocol.
Definition: object.h:35
int guac_client_pipe_handler(guac_client *client, guac_stream *stream, char *mimetype, char *name)
Handler for Guacamole pipe events.
Definition: client-fntypes.h:76
int guac_client_key_handler(guac_client *client, int keysym, int pressed)
Handler for Guacamole key events.
Definition: client-fntypes.h:54
int guac_client_free_handler(guac_client *client)
Handler for freeing up any extra data allocated by the client implementation.
Definition: client-fntypes.h:122
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:88
int guac_client_clipboard_handler(guac_client *client, guac_stream *stream, char *mimetype)
Handler for Guacamole clipboard events.
Definition: client-fntypes.h:59
int guac_client_video_handler(guac_client *client, char *mimetype)
Handler for Guacamole video format events.
Definition: client-fntypes.h:116
int guac_client_init_handler(guac_client *client, int argc, char **argv)
Handler which should initialize the given guac_client.
Definition: client-fntypes.h:132
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:49
int guac_client_get_handler(guac_client *client, guac_object *object, char *name)
Handler for Guacamole object get events.
Definition: client-fntypes.h:99
Guacamole proxy client.
Definition: client.h:94
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:127
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:44
guac_client_log_level
All supported log levels used by the logging subsystem of each Guacamole client.
Definition: client-types.h:65