diff options
author | Alon Levy <alevy@redhat.com> | 2010-11-09 11:57:13 +0200 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2011-03-02 17:27:51 +0200 |
commit | 5e1ba1101bf0f64deaead21ad1c5d4669ebb4a8c (patch) | |
tree | 52737a999e8316dc8ada3060caa9b4492a32bb26 /server/red_channel.h | |
parent | 2fcd35b073a20bfb67ab6fd14234ec7571220ec7 (diff) | |
download | spice-5e1ba1101bf0f64deaead21ad1c5d4669ebb4a8c.tar.gz spice-5e1ba1101bf0f64deaead21ad1c5d4669ebb4a8c.tar.xz spice-5e1ba1101bf0f64deaead21ad1c5d4669ebb4a8c.zip |
server/red_channel: move SET_ACK to red_channel
Diffstat (limited to 'server/red_channel.h')
-rw-r--r-- | server/red_channel.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/server/red_channel.h b/server/red_channel.h index 2d90de16..8e01c7a4 100644 --- a/server/red_channel.h +++ b/server/red_channel.h @@ -89,6 +89,16 @@ typedef struct BufDescriptor { uint8_t *data; } BufDescriptor; +/* Messages handled by red_channel + * SET_ACK - sent to client on channel connection + * Note that the numbers don't have to correspond to spice message types, + * but we keep the 100 first allocated for base channel approach. + * */ +enum { + PIPE_ITEM_TYPE_SET_ACK=1, + PIPE_ITEM_TYPE_CHANNEL_BASE=101, +}; + typedef struct PipeItem { RingItem link; int type; @@ -226,6 +236,7 @@ void red_channel_pipe_add_type(RedChannel *channel, int pipe_item_type); void red_channel_ack_zero_messages_window(RedChannel *channel); void red_channel_ack_set_client_window(RedChannel *channel, int client_window); +void red_channel_push_set_ack(RedChannel *channel); // TODO: unstaticed for display/cursor channels. they do some specific pushes not through // adding elements or on events. but not sure if this is actually required (only result |