From e04533c29905780c4a8897e0e3236dfb982d9953 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Fri, 19 Oct 2012 14:17:57 -0700 Subject: [PATCH] Add missing declaration for guac_socket_nest. --- libguac/include/socket.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/libguac/include/socket.h b/libguac/include/socket.h index 3d1c6e60..a9085bfd 100644 --- a/libguac/include/socket.h +++ b/libguac/include/socket.h @@ -219,6 +219,22 @@ void guac_socket_free(guac_socket* socket); */ guac_socket* guac_socket_open(int fd); +/** + * Allocates and initializes a new guac_socket which writes all data via + * nest instructions to the given existing, open guac_socket. + * + * If an error occurs while allocating the guac_socket object, NULL is returned, + * and guac_error is set appropriately. + * + * @param parent The guac_socket this new guac_socket should write nest + * instructions to. + * @param index The stream index to use for the written nest instructions. + * @return A newly allocated guac_socket object associated with the given + * guac_socket and stream index, or NULL if an error occurs while + * allocating the guac_socket object. + */ +guac_socket* guac_socket_nest(guac_socket* parent, int index); + /** * Writes the given unsigned int to the given guac_socket object. The data * written may be buffered until the buffer is flushed automatically or