diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-07-28 22:48:42 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-07-28 22:48:42 +0200 |
commit | c3eddae338f03eb1219cef12152890254e9ac573 (patch) | |
tree | d46885e50bd31e9e10967d2af4ca0f036d0b0fc1 /src/mds-registry/mds-registry.c | |
parent | split out util from mds-registry (diff) | |
download | mds-c3eddae338f03eb1219cef12152890254e9ac573.tar.gz mds-c3eddae338f03eb1219cef12152890254e9ac573.tar.bz2 mds-c3eddae338f03eb1219cef12152890254e9ac573.tar.xz |
split out globals from mds-registry
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/mds-registry/mds-registry.c | 48 |
1 files changed, 1 insertions, 47 deletions
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 <libmdsserver/macros.h> #include <libmdsserver/util.h> @@ -56,53 +57,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) * |