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@redhat.com>
This commit is contained in:
Jonathon Jongsma 2015-01-16 14:18:14 -06:00 committed by Frediano Ziglio
parent 47df90a8ce
commit 8bb265726c
3 changed files with 6 additions and 3 deletions

View File

@ -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

View File

@ -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;

View File

@ -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;