From c339b1299bd6bfb187d5aa5750f1313d9ab65c43 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Thu, 12 Jan 2012 10:11:45 -0800 Subject: [PATCH] Move private struct members to bottom such that public interface is not distrubed when internal changes are made (avoid being forced to increment version, as done now). --- libguac/Makefile.am | 2 +- libguac/include/client.h | 43 ++++++++++++++++++++-------------------- 2 files changed, 22 insertions(+), 23 deletions(-) diff --git a/libguac/Makefile.am b/libguac/Makefile.am index fff061c1..41bbc815 100644 --- a/libguac/Makefile.am +++ b/libguac/Makefile.am @@ -46,5 +46,5 @@ lib_LTLIBRARIES = libguac.la libguac_la_SOURCES = src/client.c src/socket.c src/protocol.c src/client-handlers.c src/error.c -libguac_la_LDFLAGS = -version-info 2:0:0 +libguac_la_LDFLAGS = -version-info 3:0:0 diff --git a/libguac/include/client.h b/libguac/include/client.h index c79c4bc3..b5d6682d 100644 --- a/libguac/include/client.h +++ b/libguac/include/client.h @@ -203,28 +203,6 @@ struct guac_client { */ guac_client_state state; - /** - * The index of the next available buffer. - */ - int __next_buffer_index; - - /** - * The head pointer of the list of all available (allocated but not used) - * buffers. - */ - guac_layer* __available_buffers; - - /** - * Pointer to the last buffer in the list of all available buffers. - */ - guac_layer* __last_available_buffer; - - /** - * The head pointer of the list of all allocated layers, regardless of use - * status. - */ - guac_layer* __all_layers; - /** * The time (in milliseconds) of receipt of the last sync message from * the client. @@ -402,6 +380,27 @@ struct guac_client { */ guac_client_log_handler* log_error_handler; + /** + * The index of the next available buffer. + */ + int __next_buffer_index; + + /** + * The head pointer of the list of all available (allocated but not used) + * buffers. + */ + guac_layer* __available_buffers; + + /** + * Pointer to the last buffer in the list of all available buffers. + */ + guac_layer* __last_available_buffer; + + /** + * The head pointer of the list of all allocated layers, regardless of use + * status. + */ + guac_layer* __all_layers; };