summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorJonathon Jongsma <jjongsma@redhat.com>2015-07-31 17:31:58 +0100
committerChristophe Fergeau <cfergeau@redhat.com>2015-08-11 17:24:36 +0200
commitff97799487284816a44403ac4406c19e30bf5fa2 (patch)
treee9bb3988d0fbf5fc9d043a69c3ea2a9dd545cac6 /server
parent0eaf34c04b8535c8fe1571a435dd8539c9815eed (diff)
downloadspice-ff97799487284816a44403ac4406c19e30bf5fa2.tar.gz
spice-ff97799487284816a44403ac4406c19e30bf5fa2.tar.xz
spice-ff97799487284816a44403ac4406c19e30bf5fa2.zip
Move RedsMigSpice to main-channel.h
This is the place that needs the complete type definition. If it is defined in reds.h, it can create circular references.
Diffstat (limited to 'server')
-rw-r--r--server/main_channel.h9
-rw-r--r--server/reds.h7
2 files changed, 8 insertions, 8 deletions
diff --git a/server/main_channel.h b/server/main_channel.h
index c8e9ade2..d371d794 100644
--- a/server/main_channel.h
+++ b/server/main_channel.h
@@ -21,7 +21,6 @@
#include <stdint.h>
#include <spice/vd_agent.h>
#include "common/marshaller.h"
-#include "reds.h"
#include "red_channel.h"
// TODO: Defines used to calculate receive buffer size, and also by reds.c
@@ -33,6 +32,14 @@
#define MAIN_CHANNEL_RECEIVE_BUF_SIZE \
(4096 + (REDS_AGENT_WINDOW_SIZE + REDS_NUM_INTERNAL_AGENT_MESSAGES) * SPICE_AGENT_MAX_DATA_SIZE)
+struct RedsMigSpice {
+ char *host;
+ char *cert_subject;
+ int port;
+ int sport;
+};
+typedef struct RedsMigSpice RedsMigSpice;
+
typedef struct MainChannel {
RedChannel base;
uint8_t recv_buf[MAIN_CHANNEL_RECEIVE_BUF_SIZE];
diff --git a/server/reds.h b/server/reds.h
index 0483c712..a9c2df9b 100644
--- a/server/reds.h
+++ b/server/reds.h
@@ -44,13 +44,6 @@ struct SpiceMigrateState {
int dummy;
};
-typedef struct RedsMigSpice {
- char *host;
- char *cert_subject;
- int port;
- int sport;
-} RedsMigSpice;
-
/* main thread only */
void reds_handle_channel_event(int event, SpiceChannelEventInfo *info);