diff options
author | Alon Levy <alevy@redhat.com> | 2013-08-12 15:01:42 +0300 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2013-08-14 12:08:04 +0300 |
commit | bc50ff07676fa0b15df3aa2ae7e54936a8f81f95 (patch) | |
tree | 085148820f4489508d628ade46b3e328ebef6efd /server/red_channel.h | |
parent | fe38ddf724a7cd47fe8225ba6b10e9abaaf53c89 (diff) | |
download | spice-bc50ff07676fa0b15df3aa2ae7e54936a8f81f95.tar.gz spice-bc50ff07676fa0b15df3aa2ae7e54936a8f81f95.tar.xz spice-bc50ff07676fa0b15df3aa2ae7e54936a8f81f95.zip |
server: move three functions to red_channel
Three blocking functions, one was split to leave the display channel
specific referencing of the DrawablePipeItem being sent inside
red_worker, but the rest (most) of the timeout logic was moved to
red_channel, including the associated constants.
Moved functions:
red_channel_client_wait_pipe_item_sent
red_wait_outgoing_item
red_wait_all_sent
Introduces red_time.h & red_time.c for a small helper function dealing
with time.h
Diffstat (limited to 'server/red_channel.h')
-rw-r--r-- | server/red_channel.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/server/red_channel.h b/server/red_channel.h index 0dd73ea8..b2a3a6ad 100644 --- a/server/red_channel.h +++ b/server/red_channel.h @@ -596,4 +596,14 @@ int red_client_during_migrate_at_target(RedClient *client); void red_client_migrate(RedClient *client); +/* blocking function */ +void red_channel_client_wait_pipe_item_sent(RedChannelClient *rcc, + PipeItem *item); + +/* blocking function */ +void red_wait_outgoing_item(RedChannelClient *rcc); + +/* blocking function */ +void red_wait_all_sent(RedChannel *channel); + #endif |