mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 23:25:48 +00:00
ui/dbus: introduce "Interfaces" properties
This property is similar to ``org.freedesktop.DBus.Interfaces`` property on the bus interface: it's an array of strings listing the extra interfaces and capabilities available, in a convenient way. Most interfaces are implicit, as they are required. For ``org/qemu/Display1_$id``, we can list the Keyboard And Mouse interfaces. Those could be optional. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20230606115658.677673-9-marcandre.lureau@redhat.com>
This commit is contained in:
@ -537,6 +537,12 @@ dbus_display_console_new(DBusDisplay *display, QemuConsole *con)
|
||||
char device_addr[256] = "";
|
||||
DBusDisplayConsole *ddc;
|
||||
int idx, i;
|
||||
const char *interfaces[] = {
|
||||
"org.qemu.Display1.Keyboard",
|
||||
"org.qemu.Display1.Mouse",
|
||||
"org.qemu.Display1.MultiTouch",
|
||||
NULL
|
||||
};
|
||||
|
||||
assert(display);
|
||||
assert(con);
|
||||
@ -561,6 +567,7 @@ dbus_display_console_new(DBusDisplay *display, QemuConsole *con)
|
||||
"width", qemu_console_get_width(con, 0),
|
||||
"height", qemu_console_get_height(con, 0),
|
||||
"device-address", device_addr,
|
||||
"interfaces", interfaces,
|
||||
NULL);
|
||||
g_object_connect(ddc->iface,
|
||||
"swapped-signal::handle-register-listener",
|
||||
|
Reference in New Issue
Block a user