diff options
author | Alon Levy <alevy@redhat.com> | 2010-11-11 19:15:45 +0200 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2011-03-02 17:27:53 +0200 |
commit | 5575d6e5fac35e92ccc563c82e6cd98031388081 (patch) | |
tree | 8c50981b61a087316c8e8c73afa6a80c9cce58ae /server/red_channel.c | |
parent | 17ebd6a71946b456345b2f997861a55535e9c39d (diff) | |
download | spice-5575d6e5fac35e92ccc563c82e6cd98031388081.tar.gz spice-5575d6e5fac35e92ccc563c82e6cd98031388081.tar.xz spice-5575d6e5fac35e92ccc563c82e6cd98031388081.zip |
server/red_channel: add red_channel_{,no_}item_being_sent
Diffstat (limited to 'server/red_channel.c')
-rw-r--r-- | server/red_channel.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/server/red_channel.c b/server/red_channel.c index f2665a46..8eb4e0d8 100644 --- a/server/red_channel.c +++ b/server/red_channel.c @@ -727,6 +727,12 @@ RedsStream *red_channel_get_stream(RedChannel *channel) return channel->stream; } +SpiceDataHeader *red_channel_get_header(RedChannel *channel) +{ + return channel->send_data.header; +} +/* end of accessors */ + int red_channel_get_first_socket(RedChannel *channel) { if (!channel->stream) { @@ -735,7 +741,12 @@ int red_channel_get_first_socket(RedChannel *channel) return channel->stream->socket; } -SpiceDataHeader *red_channel_get_header(RedChannel *channel) +int red_channel_item_being_sent(RedChannel *channel, PipeItem *item) { - return channel->send_data.header; + return channel->send_data.item == item; +} + +int red_channel_no_item_being_sent(RedChannel *channel) +{ + return channel->send_data.item == NULL; } |