diff options
author | Jonathon Jongsma <jjongsma@redhat.com> | 2015-02-06 14:39:39 -0600 |
---|---|---|
committer | Fabiano FidĂȘncio <fidencio@redhat.com> | 2015-02-23 23:00:46 +0100 |
commit | e49e6e5b8937daf553a615c12925296ef3b68dcb (patch) | |
tree | 0b459c415c82101b965ec38345fe8b59705f9902 /server/red-channel.c | |
parent | d4837620ab3a4db4b2aef109872cf1817a2ac0dd (diff) | |
download | spice-e49e6e5b8937daf553a615c12925296ef3b68dcb.tar.gz spice-e49e6e5b8937daf553a615c12925296ef3b68dcb.tar.xz spice-e49e6e5b8937daf553a615c12925296ef3b68dcb.zip |
Add red_channel_get_server()
Instead of poking into the internals of the RedChannel, provide an
accessor.
Diffstat (limited to 'server/red-channel.c')
-rw-r--r-- | server/red-channel.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/red-channel.c b/server/red-channel.c index 646b000b..58001ec3 100644 --- a/server/red-channel.c +++ b/server/red-channel.c @@ -2459,3 +2459,8 @@ void red_channel_client_disconnect_if_pending_send(RedChannelClient *rcc) spice_warn_if_fail(red_channel_client_no_item_being_sent(rcc)); } + +RedsState* red_channel_get_server(RedChannel *channel) +{ + return channel->reds; +} |