mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 14:41:25 +00:00
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:
parent
47df90a8ce
commit
8bb265726c
@ -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
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user