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.h | |
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.h')
-rw-r--r-- | server/red_channel.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/server/red_channel.h b/server/red_channel.h index ce8ef20a..d08b661a 100644 --- a/server/red_channel.h +++ b/server/red_channel.h @@ -260,6 +260,14 @@ int red_channel_any_blocked(RedChannel *channel); /* helper for channels that have complex logic that can possibly ready a send */ int red_channel_send_message_pending(RedChannel *channel); +/* returns TRUE if item is being sent by one of the channel clients. This will + * be true if someone called init_send_data but send has not completed (or perhaps + * hasn't even begun, i.e. no one called begin_send_) + * */ +int red_channel_item_being_sent(RedChannel *channel, PipeItem *item); + +int red_channel_no_item_being_sent(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 // should be that they ""try"" a little harder, but if the event system is correct it |