From c3eddae338f03eb1219cef12152890254e9ac573 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 28 Jul 2014 22:48:42 +0200 Subject: split out globals from mds-registry MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds-registry/mds-registry.c | 48 +---------------------------------------- 1 file changed, 1 insertion(+), 47 deletions(-) (limited to 'src/mds-registry/mds-registry.c') diff --git a/src/mds-registry/mds-registry.c b/src/mds-registry/mds-registry.c index 28dd368..b41733a 100644 --- a/src/mds-registry/mds-registry.c +++ b/src/mds-registry/mds-registry.c @@ -18,6 +18,7 @@ #include "mds-registry.h" #include "util.h" +#include "globals.h" #include #include @@ -55,53 +56,6 @@ server_characteristics_t server_characteristics = -/** - * Value of the ‘Message ID’ header for the next message - */ -static int32_t message_id = 2; - -/** - * Buffer for received messages - */ -static mds_message_t received; - -/** - * Whether the server is connected to the display - */ -static int connected = 1; - -/** - * Protocol registry table - */ -static hash_table_t reg_table; - -/** - * Reusable buffer for data to send - */ -static char* send_buffer = NULL; - -/** - * The size of `send_buffer` - */ -static size_t send_buffer_size = 0; - -/** - * General mutex - */ -static pthread_mutex_t reg_mutex; - -/** - * General condition - */ -static pthread_cond_t reg_cond; - -/** - * Used to temporarily store the old value when reallocating heap-allocations - */ -static char* old; - - - /** * This function will be invoked before `initialise_server` (if not re-exec:ing) * or before `unmarshal_server` (if re-exec:ing) -- cgit v1.2.3-70-g09d2