summaryrefslogtreecommitdiffstats
path: root/server/main_channel.h
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2013-10-02 18:42:24 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2013-10-08 19:07:41 +0200
commit394fd0e6b76a8b4b0662d4445b4f961fa5798e74 (patch)
tree830309ac84b8e8269a9cdad1d8b13b968c897ce8 /server/main_channel.h
parentb18d867b319b3077d12e853897ce30be09924045 (diff)
downloadspice-394fd0e6b76a8b4b0662d4445b4f961fa5798e74.tar.gz
spice-394fd0e6b76a8b4b0662d4445b4f961fa5798e74.tar.xz
spice-394fd0e6b76a8b4b0662d4445b4f961fa5798e74.zip
Namespace RECEIVE_BUF_SIZE
Diffstat (limited to 'server/main_channel.h')
-rw-r--r--server/main_channel.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/main_channel.h b/server/main_channel.h
index 29eb8d41..c8e9ade2 100644
--- a/server/main_channel.h
+++ b/server/main_channel.h
@@ -30,12 +30,12 @@
#define REDS_NUM_INTERNAL_AGENT_MESSAGES 1
// approximate max receive message size for main channel
-#define RECEIVE_BUF_SIZE \
+#define MAIN_CHANNEL_RECEIVE_BUF_SIZE \
(4096 + (REDS_AGENT_WINDOW_SIZE + REDS_NUM_INTERNAL_AGENT_MESSAGES) * SPICE_AGENT_MAX_DATA_SIZE)
typedef struct MainChannel {
RedChannel base;
- uint8_t recv_buf[RECEIVE_BUF_SIZE];
+ uint8_t recv_buf[MAIN_CHANNEL_RECEIVE_BUF_SIZE];
RedsMigSpice mig_target; // TODO: add refs and release (afrer all clients completed migration in one way or the other?)
int num_clients_mig_wait;
} MainChannel;