On 10/6/26 12:57, Marc-André Lureau wrote:
Replace QEMUPutLEDEntry with an embedded Notifier in VncDisplay.
Use qemu_input_led_notifier_add/remove instead of the old
qemu_add/remove_led_event_handler.

Signed-off-by: Marc-André Lureau <[email protected]>
---
  ui/vnc.h               |  2 +-
  tools/qemu-vnc/input.c | 49 +++++++++++++++++--------------------------------
  ui/vnc.c               | 11 ++++++-----
  3 files changed, 24 insertions(+), 38 deletions(-)


+int qemu_input_get_led(QemuConsole *con)

unsigned, const; otherwise:

Reviewed-by: Philippe Mathieu-Daudé <[email protected]>

  {
-    if (!entry) {
-        return;
-    }
-    QTAILQ_REMOVE(&led_handlers, entry, next);
-    g_free(entry);
+    return modifiers;
  }


Reply via email to