libguac  0.9.11-incubating
Typedefs
client-fntypes.h File Reference

Function type definitions related to the Guacamole client structure, guac_client. More...

Go to the source code of this file.

Typedefs

typedef int guac_client_free_handler(guac_client *client)
 Handler for freeing up any extra data allocated by the client implementation. More...
 
typedef void guac_client_log_handler(guac_client *client, guac_client_log_level level, const char *format, va_list args)
 Handler for logging messages related to a given guac_client instance. More...
 
typedef int guac_client_init_handler(guac_client *client)
 The entry point of a client plugin which must initialize the given guac_client. More...
 

Detailed Description

Function type definitions related to the Guacamole client structure, guac_client.

Typedef Documentation

typedef int guac_client_free_handler(guac_client *client)

Handler for freeing up any extra data allocated by the client implementation.

Parameters
clientThe client whose extra data should be freed (if any).
Returns
Zero if the data was successfully freed, non-zero if an error prevents the data from being freed.
typedef int guac_client_init_handler(guac_client *client)

The entry point of a client plugin which must initialize the given guac_client.

In practice, this function will be called "guac_client_init".

Parameters
clientThe guac_client that must be initialized.
Returns
Zero on success, non-zero if initialization fails for any reason.
typedef void guac_client_log_handler(guac_client *client, guac_client_log_level level, const char *format, va_list args)

Handler for logging messages related to a given guac_client instance.

Parameters
clientThe client related to the message being logged.
levelThe log level at which to log the given message.
formatA printf-style format string, defining the message to be logged.
argsThe va_list containing the arguments to be used when filling the conversion specifiers ("%s", "%i", etc.) within the format string.