GUAC-1172: Add missing guac_client_alloc_object() and guac_client_free_object() definitions to client.h.

This commit is contained in:
Michael Jumper 2015-06-20 12:56:58 -07:00
parent 95ede7a91d
commit 9321312fce

View File

@ -603,6 +603,30 @@ guac_stream* guac_client_alloc_stream(guac_client* client);
*/ */
void guac_client_free_stream(guac_client* client, guac_stream* stream); void guac_client_free_stream(guac_client* client, guac_stream* stream);
/**
* Allocates a new object. An arbitrary index is automatically assigned
* if no previously-allocated object is available for use.
*
* @param client
* The proxy client to allocate the object for.
*
* @return
* The next available object, or a newly allocated object.
*/
guac_object* guac_client_alloc_object(guac_client* client);
/**
* Returns the given object to the pool of available objects, such that it
* can be reused by any subsequent call to guac_client_alloc_object().
*
* @param client
* The proxy client to return the object to.
*
* @param object
* The object to return to the pool of available object.
*/
void guac_client_free_object(guac_client* client, guac_object* object);
/** /**
* The default Guacamole client layer, layer 0. * The default Guacamole client layer, layer 0.
*/ */