mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-14 20:31:17 +00:00
char-device: Use red_char_device_get_device_instance to retrieve character instance
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
parent
1e13fb13c7
commit
f3a97a001b
@ -707,8 +707,8 @@ reset_channels(StreamDevice *dev)
|
||||
static void
|
||||
char_device_set_state(RedCharDevice *char_dev, int state)
|
||||
{
|
||||
SpiceCharDeviceInstance *sin = NULL;
|
||||
g_object_get(char_dev, "sin", &sin, NULL);
|
||||
SpiceCharDeviceInstance *sin;
|
||||
sin = red_char_device_get_device_instance(char_dev);
|
||||
spice_assert(sin != NULL);
|
||||
|
||||
SpiceCharDeviceInterface *sif = spice_char_device_get_interface(sin);
|
||||
|
||||
@ -369,7 +369,7 @@ void smartcard_char_device_detach_client(RedCharDeviceSmartcard *smartcard,
|
||||
SpiceCharDeviceInterface *sif;
|
||||
SpiceCharDeviceInstance *sin;
|
||||
|
||||
g_object_get(smartcard, "sin", &sin, NULL);
|
||||
sin = red_char_device_get_device_instance(RED_CHAR_DEVICE(smartcard));
|
||||
sif = spice_char_device_get_interface(sin);
|
||||
|
||||
spice_assert(smartcard->priv->scc == scc);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user