41#include <cairo/cairo.h>
606 int argc,
char** argv);
650 const char* format, ...);
665 const char* format, va_list ap);
678 const char* format, ...);
692 const char* format, va_list ap);
742 const char* mimetype,
const char* name,
const char* value);
775 cairo_surface_t* surface);
813 cairo_surface_t* surface,
int quality);
859 cairo_surface_t* surface,
int quality,
int lossless);
933 const char** argv,
int index,
const char* default_value);
966 const char** argv,
int index,
int default_value);
1002 const char** argv,
int index,
int default_value);
Type definitions related to the Guacamole client structure, guac_client.
guac_client_log_level
All supported log levels used by the logging subsystem of each Guacamole client.
Definition client-types.h:62
Type definitions related to Guacamole layers.
Type definitions related to the guac_pool pool of unique integers.
guac_composite_mode
Composite modes used by Guacamole draw instructions.
Definition protocol-types.h:170
guac_protocol_version
The set of protocol versions known to guacd to handle negotiation or feature support between differin...
Definition protocol-types.h:283
guac_protocol_status
Set of all possible status codes returned by protocol operations.
Definition protocol-types.h:44
Type definitions related to the guac_socket object.
Type definitions related to Guacamole protocol streams.
Guacamole proxy client.
Definition client.h:48
Represents a single layer within the Guacamole protocol.
Definition layer.h:34
Represents a single object within the Guacamole protocol.
Definition object.h:32
A pool of integers.
Definition pool.h:34
The core I/O object of Guacamole.
Definition socket.h:39
Represents a single stream within the Guacamole protocol.
Definition stream.h:32
Information exposed by the remote client during the connection handshake which can be used by a clien...
Definition user.h:46
const char ** audio_mimetypes
NULL-terminated array of client-supported audio mimetypes.
Definition user.h:68
const char * name
The human-readable name of the Guacamole user, supplied by the client during the handshake.
Definition user.h:111
int optimal_height
The number of pixels the remote client requests for the display height.
Definition user.h:62
const char * timezone
The timezone of the remote system.
Definition user.h:97
int optimal_width
The number of pixels the remote client requests for the display width.
Definition user.h:54
guac_protocol_version protocol_version
The Guacamole protocol version that the remote system supports, allowing for feature support to be ne...
Definition user.h:103
const char ** image_mimetypes
NULL-terminated array of client-supported image mimetypes.
Definition user.h:81
int optimal_resolution
The DPI of the physical remote display if configured for the optimal width/height combination describ...
Definition user.h:90
const char ** video_mimetypes
NULL-terminated array of client-supported video mimetypes.
Definition user.h:74
Representation of a physical connection within a larger logical connection which may be shared.
Definition user.h:115
guac_user_info info
Information structure containing properties exposed by the remote user during the initial handshake p...
Definition user.h:190
guac_user_mouse_handler * mouse_handler
Handler for mouse events sent by the Gaucamole web-client.
Definition user.h:247
guac_user_put_handler * put_handler
Handler for put events sent by the Guacamole web-client.
Definition user.h:475
guac_user_leave_handler * leave_handler
Handler for leave events fired by the guac_client when a guac_user is leaving an active connection.
Definition user.h:435
int active
Non-zero if this user is active (connected), and zero otherwise.
Definition user.h:149
guac_user_sync_handler * sync_handler
Handler for sync events sent by the Guacamole web-client.
Definition user.h:416
int owner
Non-zero if this user is the owner of the associated connection, zero otherwise.
Definition user.h:141
guac_user_size_handler * size_handler
Handler for size events sent by the Guacamole web-client.
Definition user.h:303
guac_user_audio_handler * audio_handler
Handler for audio events sent by the Guacamole web-client.
Definition user.h:497
int processing_lag
The overall lag experienced by the user relative to the stream of frames, roughly excluding network l...
Definition user.h:184
guac_client * client
The guac_client to which this user belongs.
Definition user.h:120
guac_user_touch_handler * touch_handler
Handler for touch events sent by the Guacamole web-client.
Definition user.h:539
guac_user_clipboard_handler * clipboard_handler
Handler for clipboard events sent by the Guacamole web-client.
Definition user.h:286
guac_user_end_handler * end_handler
Handler for stream end events sent by the Guacamole web-client.
Definition user.h:397
guac_socket * socket
This user's actual socket.
Definition user.h:127
guac_user_blob_handler * blob_handler
Handler for blob events sent by the Guacamole web-client.
Definition user.h:379
guac_user_file_handler * file_handler
Handler for file events sent by the Guacamole web-client.
Definition user.h:322
char * user_id
The unique identifier allocated for this user, which may be used within the Guacamole protocol to ref...
Definition user.h:135
guac_user_argv_handler * argv_handler
Handler for argv events (updates to the connection parameters of an in-progress connection) sent by t...
Definition user.h:518
guac_user_key_handler * key_handler
Handler for key events sent by the Guacamole web-client.
Definition user.h:265
int last_frame_duration
The duration of the last frame rendered by the user, in milliseconds.
Definition user.h:178
void * data
Arbitrary user-specific data.
Definition user.h:220
guac_user_ack_handler * ack_handler
Handler for ack events sent by the Guacamole web-client.
Definition user.h:360
guac_user_get_handler * get_handler
Handler for get events sent by the Guacamole web-client.
Definition user.h:455
guac_timestamp last_received_timestamp
The time (in milliseconds) of receipt of the last sync message from the user.
Definition user.h:171
guac_user_pipe_handler * pipe_handler
Handler for pipe events sent by the Guacamole web-client.
Definition user.h:341
Type definitions related to Guacamole protocol timestamps.
int64_t guac_timestamp
An arbitrary timestamp denoting a relative time value in milliseconds.
Definition timestamp-types.h:34
Constants related to the Guacamole user structure, guac_user.
Function type definitions related to the guac_user object.
int guac_user_clipboard_handler(guac_user *user, guac_stream *stream, char *mimetype)
Handler for Guacamole clipboard streams received from a user.
Definition user-fntypes.h:206
int guac_user_audio_handler(guac_user *user, guac_stream *stream, char *mimetype)
Handler for Guacamole audio streams received from a user.
Definition user-fntypes.h:183
int guac_user_mouse_handler(guac_user *user, int x, int y, int button_mask)
Handler for Guacamole mouse events, invoked when a "mouse" instruction has been received from a user.
Definition user-fntypes.h:95
int guac_user_key_handler(guac_user *user, int keysym, int pressed)
Handler for Guacamole key events, invoked when a "key" event has been received from a user.
Definition user-fntypes.h:161
int guac_user_argv_handler(guac_user *user, guac_stream *stream, char *mimetype, char *name)
Handler for Guacamole argument value (argv) streams received from a user.
Definition user-fntypes.h:312
int guac_user_file_handler(guac_user *user, guac_stream *stream, char *mimetype, char *filename)
Handler for Guacamole file streams received from a user.
Definition user-fntypes.h:253
int guac_user_ack_handler(guac_user *user, guac_stream *stream, char *error, guac_protocol_status status)
Handler for Guacamole stream "ack" instructions.
Definition user-fntypes.h:364
int guac_user_leave_handler(guac_user *user)
Handler for Guacamole leave events.
Definition user-fntypes.h:430
int guac_user_sync_handler(guac_user *user, guac_timestamp timestamp)
Handler for Guacamole sync events.
Definition user-fntypes.h:451
int guac_user_pipe_handler(guac_user *user, guac_stream *stream, char *mimetype, char *name)
Handler for Guacamole pipe streams received from a user.
Definition user-fntypes.h:282
int guac_user_get_handler(guac_user *user, guac_object *object, char *name)
Handler for Guacamole object get requests.
Definition user-fntypes.h:472
int guac_user_size_handler(guac_user *user, int width, int height)
Handler for Guacamole size events, invoked when a "size" instruction has been received from a user.
Definition user-fntypes.h:227
int guac_user_touch_handler(guac_user *user, int id, int x, int y, int x_radius, int y_radius, double angle, double force)
Handler for Guacamole touch events, invoked when a "touch" instruction has been received from a user.
Definition user-fntypes.h:140
int guac_user_blob_handler(guac_user *user, guac_stream *stream, void *data, int length)
Handler for Guacamole stream blobs.
Definition user-fntypes.h:335
int guac_user_end_handler(guac_user *user, guac_stream *stream)
Handler for Guacamole stream "end" instructions.
Definition user-fntypes.h:381
int guac_user_put_handler(guac_user *user, guac_object *object, guac_stream *stream, char *mimetype, char *name)
Handler for Guacamole object put requests.
Definition user-fntypes.h:499
Type definitions related to the guac_user object.
int guac_user_handle_instruction(guac_user *user, const char *opcode, int argc, char **argv)
Call the appropriate handler defined by the given user for the given instruction.
int guac_user_parse_args_int(guac_user *user, const char **arg_names, const char **argv, int index, int default_value)
Automatically handles a single integer argument received from a joining user, returning the integer v...
int guac_user_supports_required(guac_user *user)
Returns whether the given user supports the "required" instruction.
void guac_user_abort(guac_user *user, guac_protocol_status status, const char *format,...)
Signals the given user to stop gracefully, while also signalling via the Guacamole protocol that an e...
int guac_user_supports_webp(guac_user *user)
Returns whether the given user supports WebP.
int guac_user_handle_connection(guac_user *user, int usec_timeout)
Handles all I/O for the portion of a user's Guacamole connection following the initial "select" instr...
void guac_user_stream_png(guac_user *user, guac_socket *socket, guac_composite_mode mode, const guac_layer *layer, int x, int y, cairo_surface_t *surface)
Streams the image data of the given surface over an image stream ("img" instruction) as PNG-encoded d...
guac_user * guac_user_alloc()
Allocates a new, blank user, not associated with any specific client or socket.
void guac_user_free_stream(guac_user *user, guac_stream *stream)
Returns the given stream to the pool of available streams, such that it can be reused by any subseque...
char * guac_user_parse_args_string(guac_user *user, const char **arg_names, const char **argv, int index, const char *default_value)
Automatically handles a single argument received from a joining user, returning a newly-allocated str...
guac_stream * guac_user_alloc_stream(guac_user *user)
Allocates a new stream.
guac_object * guac_user_alloc_object(guac_user *user)
Allocates a new object.
int guac_user_parse_args_boolean(guac_user *user, const char **arg_names, const char **argv, int index, int default_value)
Automatically handles a single boolean argument received from a joining user, returning the value of ...
int guac_user_supports_msg(guac_user *user)
Returns whether the given user supports the "msg" instruction.
void guac_user_stream_jpeg(guac_user *user, guac_socket *socket, guac_composite_mode mode, const guac_layer *layer, int x, int y, cairo_surface_t *surface, int quality)
Streams the image data of the given surface over an image stream ("img" instruction) as JPEG-encoded ...
void guac_user_free(guac_user *user)
Frees the given user and all associated resources.
void guac_user_stop(guac_user *user)
Signals the given user that it must disconnect, or advises cooperating services that the given user i...
void guac_user_stream_argv(guac_user *user, guac_socket *socket, const char *mimetype, const char *name, const char *value)
Streams the given connection parameter value over an argument value stream ("argv" instruction),...
void guac_user_log(guac_user *user, guac_client_log_level level, const char *format,...)
Writes a message in the log used by the given user.
void guac_user_free_object(guac_user *user, guac_object *object)
Returns the given object to the pool of available objects, such that it can be reused by any subseque...
void vguac_user_abort(guac_user *user, guac_protocol_status status, const char *format, va_list ap)
Signals the given user to stop gracefully, while also signalling via the Guacamole protocol that an e...
void guac_user_stream_webp(guac_user *user, guac_socket *socket, guac_composite_mode mode, const guac_layer *layer, int x, int y, cairo_surface_t *surface, int quality, int lossless)
Streams the image data of the given surface over an image stream ("img" instruction) as WebP-encoded ...
void vguac_user_log(guac_user *user, guac_client_log_level level, const char *format, va_list ap)
Writes a message in the log used by the given user.