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/inputs-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/inputs-channel.c')
-rw-r--r-- | server/inputs-channel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/inputs-channel.c b/server/inputs-channel.c index 7de4966e..382b3c57 100644 --- a/server/inputs-channel.c +++ b/server/inputs-channel.c @@ -310,7 +310,7 @@ static int inputs_channel_handle_parsed(RedChannelClient *rcc, uint32_t size, ui InputsChannel *inputs_channel = (InputsChannel *)rcc->channel; InputsChannelClient *icc = (InputsChannelClient *)rcc; uint32_t i; - RedsState *reds = inputs_channel->base.reds; + RedsState *reds = red_channel_get_server((RedChannel*)inputs_channel); switch (type) { case SPICE_MSGC_INPUTS_KEY_DOWN: { @@ -680,7 +680,7 @@ int inputs_channel_set_keyboard(InputsChannel *inputs, SpiceKbdInstance *keyboar return -1; } inputs->keyboard = keyboard; - inputs->keyboard->st = spice_kbd_state_new(inputs->base.reds); + inputs->keyboard->st = spice_kbd_state_new(red_channel_get_server((RedChannel*)inputs)); return 0; } |