diff options
author | Jonathon Jongsma <jjongsma@redhat.com> | 2015-02-06 14:39:39 -0600 |
---|---|---|
committer | Frediano Ziglio <fziglio@redhat.com> | 2016-02-16 10:54:03 +0000 |
commit | bc5c07a88109422c8c1e22a68b3d6f0606b74646 (patch) | |
tree | ce7ced11b8af755a450674b8d52fbc3f37fc8857 /server/red-channel.h | |
parent | de2572815b5b9206d6516787693df27bdf837295 (diff) |
Add red_channel_get_server()
Instead of poking into the internals of the RedChannel, provide an
accessor.
Acked-by: Fabiano FidĂȘncio <fidencio@redhat.com>
Diffstat (limited to 'server/red-channel.h')
-rw-r--r-- | server/red-channel.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/red-channel.h b/server/red-channel.h index 26bd3f9d..2d61bc5b 100644 --- a/server/red-channel.h +++ b/server/red-channel.h @@ -47,6 +47,8 @@ The intention is to move towards one channel interface gradually. At the final stage, this interface shouldn't be exposed. Only RedChannel will use it. */ +struct RedsState; + typedef struct SpiceDataHeaderOpaque SpiceDataHeaderOpaque; typedef uint16_t (*get_msg_type_proc)(SpiceDataHeaderOpaque *header); @@ -565,8 +567,7 @@ uint32_t red_channel_sum_pipes_size(RedChannel *channel); typedef void (*channel_client_callback)(RedChannelClient *rcc); typedef void (*channel_client_callback_data)(RedChannelClient *rcc, void *data); void red_channel_apply_clients(RedChannel *channel, channel_client_callback v); - -struct RedsState; +struct RedsState* red_channel_get_server(RedChannel *channel); struct RedClient { struct RedsState *reds; |