mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-27 07:29:32 +00:00
char-device: notify when device instance is changed
Since the device instance ("sin") is a gobject property, we should make
sure to notify when it changes, particularly since we do some
initialization in response to the "notify::sin" signal.
Acked-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
parent
064f846c5e
commit
c28773f17a
@ -725,6 +725,7 @@ void red_char_device_reset_dev_instance(RedCharDevice *state,
|
||||
spice_debug("sin %p dev_state %p", sin, state);
|
||||
state->priv->sin = sin;
|
||||
sin->st = state;
|
||||
g_object_notify(G_OBJECT(state), "sin");
|
||||
}
|
||||
|
||||
void *red_char_device_opaque_get(RedCharDevice *dev)
|
||||
@ -885,6 +886,7 @@ void red_char_device_reset(RedCharDevice *dev)
|
||||
red_char_device_client_send_queue_free(dev, dev_client);
|
||||
}
|
||||
dev->priv->sin = NULL;
|
||||
g_object_notify(G_OBJECT(dev), "sin");
|
||||
}
|
||||
|
||||
void red_char_device_wakeup(RedCharDevice *dev)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user