From 5232056a1b5981ae430c0bd089894c03ef66978f Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sat, 1 Dec 2012 19:39:22 -0800 Subject: [PATCH] Mark internal structs as private. --- libguac/src/socket-fd.c | 12 ++++++------ libguac/src/socket-nest.c | 8 ++++---- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/libguac/src/socket-fd.c b/libguac/src/socket-fd.c index 970dcd2e..9139a906 100644 --- a/libguac/src/socket-fd.c +++ b/libguac/src/socket-fd.c @@ -56,16 +56,16 @@ #include "socket.h" #include "error.h" -typedef struct guac_socket_fd_data { +typedef struct __guac_socket_fd_data { int fd; -} guac_socket_fd_data; +} __guac_socket_fd_data; ssize_t __guac_socket_fd_read_handler(guac_socket* socket, void* buf, size_t count) { - guac_socket_fd_data* data = (guac_socket_fd_data*) socket->data; + __guac_socket_fd_data* data = (__guac_socket_fd_data*) socket->data; /* Read from socket */ int retval = read(data->fd, buf, count); @@ -83,7 +83,7 @@ ssize_t __guac_socket_fd_read_handler(guac_socket* socket, ssize_t __guac_socket_fd_write_handler(guac_socket* socket, void* buf, size_t count) { - guac_socket_fd_data* data = (guac_socket_fd_data*) socket->data; + __guac_socket_fd_data* data = (__guac_socket_fd_data*) socket->data; int retval; #ifdef __MINGW32__ @@ -106,7 +106,7 @@ ssize_t __guac_socket_fd_write_handler(guac_socket* socket, int __guac_socket_fd_select_handler(guac_socket* socket, int usec_timeout) { - guac_socket_fd_data* data = (guac_socket_fd_data*) socket->data; + __guac_socket_fd_data* data = (__guac_socket_fd_data*) socket->data; fd_set fds; struct timeval timeout; @@ -146,7 +146,7 @@ guac_socket* guac_socket_open(int fd) { /* Allocate socket and associated data */ guac_socket* socket = guac_socket_alloc(); - guac_socket_fd_data* data = malloc(sizeof(guac_socket_fd_data)); + __guac_socket_fd_data* data = malloc(sizeof(__guac_socket_fd_data)); /* Store file descriptor as socket data */ data->fd = fd; diff --git a/libguac/src/socket-nest.c b/libguac/src/socket-nest.c index 2f06200d..92e431f6 100644 --- a/libguac/src/socket-nest.c +++ b/libguac/src/socket-nest.c @@ -60,18 +60,18 @@ #define GUAC_SOCKET_NEST_BUFFER_SIZE 8192 -typedef struct guac_socket_nest_data { +typedef struct __guac_socket_nest_data { guac_socket* parent; char buffer[GUAC_SOCKET_NEST_BUFFER_SIZE]; int index; -} guac_socket_nest_data; +} __guac_socket_nest_data; ssize_t __guac_socket_nest_write_handler(guac_socket* socket, void* buf, size_t count) { - guac_socket_nest_data* data = (guac_socket_nest_data*) socket->data; + __guac_socket_nest_data* data = (__guac_socket_nest_data*) socket->data; unsigned char* source = (unsigned char*) buf; /* Current location in destination buffer during copy */ @@ -137,7 +137,7 @@ guac_socket* guac_socket_nest(guac_socket* parent, int index) { /* Allocate socket and associated data */ guac_socket* socket = guac_socket_alloc(); - guac_socket_nest_data* data = malloc(sizeof(guac_socket_nest_data)); + __guac_socket_nest_data* data = malloc(sizeof(__guac_socket_nest_data)); /* Store file descriptor as socket data */ data->parent = parent;