diff options
author | Yonit Halperin <yhalperi@redhat.com> | 2012-08-05 14:16:05 +0300 |
---|---|---|
committer | Yonit Halperin <yhalperi@redhat.com> | 2012-08-27 09:13:06 +0300 |
commit | 157d459d4265e2141095fedc58469545bb0fc2f0 (patch) | |
tree | dd0f2ecc1298467e638340f41a93bbb124141177 /server/red_channel.h | |
parent | fdab42cc41e1fcee34de564e80e16890c5d86882 (diff) | |
download | spice-157d459d4265e2141095fedc58469545bb0fc2f0.tar.gz spice-157d459d4265e2141095fedc58469545bb0fc2f0.tar.xz spice-157d459d4265e2141095fedc58469545bb0fc2f0.zip |
red_channel: introduce PIPE_ITEM_TYPE_EMPTY_MSG
The pipe item is used for sending messages that don't have body.
Diffstat (limited to 'server/red_channel.h')
-rw-r--r-- | server/red_channel.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/red_channel.h b/server/red_channel.h index 8c8e1c8b..de72fffb 100644 --- a/server/red_channel.h +++ b/server/red_channel.h @@ -143,6 +143,7 @@ typedef struct MainChannelClient MainChannelClient; enum { PIPE_ITEM_TYPE_SET_ACK=1, PIPE_ITEM_TYPE_MIGRATE, + PIPE_ITEM_TYPE_EMPTY_MSG, PIPE_ITEM_TYPE_CHANNEL_BASE=101, }; @@ -438,6 +439,9 @@ void red_channel_client_pipe_add_tail(RedChannelClient *rcc, PipeItem *item); void red_channel_client_pipe_add_type(RedChannelClient *rcc, int pipe_item_type); void red_channel_pipes_add_type(RedChannel *channel, int pipe_item_type); +void red_channel_client_pipe_add_empty_msg(RedChannelClient *rcc, int msg_type); +void red_channel_pipes_add_empty_msg(RedChannel *channel, int msg_type); + void red_channel_client_ack_zero_messages_window(RedChannelClient *rcc); void red_channel_client_ack_set_client_window(RedChannelClient *rcc, int client_window); void red_channel_client_push_set_ack(RedChannelClient *rcc); |