[Spice-commits] server/reds.c server/reds.h server/reds-private.h
Frediano Ziglio
fziglio at kemper.freedesktop.org
Fri Jan 15 03:51:57 PST 2016
server/reds-private.h | 4 ++--
server/reds.c | 2 +-
server/reds.h | 3 +++
3 files changed, 6 insertions(+), 3 deletions(-)
New commits:
commit 8bb265726cf5e7dd4ef44cf42d23de6ecdbdf6b9
Author: Jonathon Jongsma <jjongsma at redhat.com>
Date: Fri Jan 16 14:18:14 2015 -0600
Make global 'reds' extern
This allows it to be accessed from other files. This is a temporary step
toward getting rid of the global-ness of this variable, and it allows us
to update the function signature bit-by-bit.
Acked-by: Frediano Ziglio <fziglio at redhat.com>
diff --git a/server/reds-private.h b/server/reds-private.h
index 7f4f04f..6d76943 100644
--- a/server/reds-private.h
+++ b/server/reds-private.h
@@ -135,7 +135,7 @@ typedef struct RedsClientMonitorsConfig {
int buffer_pos;
} RedsClientMonitorsConfig;
-typedef struct RedsState {
+struct RedsState {
int listen_socket;
int secure_listen_socket;
SpiceWatch *listen_watch;
@@ -189,6 +189,6 @@ typedef struct RedsState {
RedsClientMonitorsConfig client_monitors_config;
int mm_time_enabled;
uint32_t mm_time_latency;
-} RedsState;
+};
#endif
diff --git a/server/reds.c b/server/reds.c
index bee2574..1b877aa 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -175,7 +175,7 @@ int agent_copypaste = TRUE;
int agent_file_xfer = TRUE;
static bool exit_on_disconnect = FALSE;
-static RedsState *reds = NULL;
+RedsState *reds = NULL;
typedef struct RedLinkInfo {
RedsStream *stream;
diff --git a/server/reds.h b/server/reds.h
index f3a9ce4..8e6e136 100644
--- a/server/reds.h
+++ b/server/reds.h
@@ -30,6 +30,9 @@
#include "red-channel.h"
#include "migration-protocol.h"
+typedef struct RedsState RedsState;
+extern RedsState *reds;
+
struct QXLState {
QXLInterface *qif;
struct RedDispatcher *dispatcher;
More information about the Spice-commits
mailing list