diff options
author | Marc-André Lureau <marcandre.lureau@gmail.com> | 2014-02-27 19:38:41 +0200 |
---|---|---|
committer | Frediano Ziglio <fziglio@redhat.com> | 2015-10-15 18:30:34 +0100 |
commit | c1d518139699081f87d15cdb8c027e5e2c14ff5c (patch) | |
tree | ce644a9889a01cf1df9d9ef11df83b6ff49bb9be /server/red_channel.h | |
parent | c61404f102d2a6c5f0fb6e6f7d1c17911c91d053 (diff) | |
download | spice-c1d518139699081f87d15cdb8c027e5e2c14ff5c.tar.gz spice-c1d518139699081f87d15cdb8c027e5e2c14ff5c.tar.xz spice-c1d518139699081f87d15cdb8c027e5e2c14ff5c.zip |
server: small move to red_channel
Acked-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
Diffstat (limited to 'server/red_channel.h')
-rw-r--r-- | server/red_channel.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/server/red_channel.h b/server/red_channel.h index 619a8417..1f1538ea 100644 --- a/server/red_channel.h +++ b/server/red_channel.h @@ -151,6 +151,11 @@ typedef struct PipeItem { int type; } PipeItem; +static inline int pipe_item_is_linked(PipeItem *item) +{ + return ring_item_is_linked(&item->link); +} + typedef uint8_t *(*channel_alloc_msg_recv_buf_proc)(RedChannelClient *channel, uint16_t type, uint32_t size); typedef int (*channel_handle_parsed_proc)(RedChannelClient *rcc, uint32_t size, uint16_t type, @@ -622,5 +627,6 @@ int red_channel_client_wait_outgoing_item(RedChannelClient *rcc, int64_t timeout); int red_channel_wait_all_sent(RedChannel *channel, int64_t timeout); +void red_channel_client_disconnect_if_pending_send(RedChannelClient *rcc); #endif |