diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2024-10-08 16:50:24 +0400 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2024-10-14 17:34:09 +0400 |
commit | 4de1797ff6ceb7387cdb967ec1fa0128624ff405 (patch) | |
tree | 290b4357fc6664bffba346df928f24ebda79f7dc /ui | |
parent | 3a9d38d31ea7bf99c62c8d97433baa85b3bdd5c9 (diff) | |
download | qemu-4de1797ff6ceb7387cdb967ec1fa0128624ff405.zip qemu-4de1797ff6ceb7387cdb967ec1fa0128624ff405.tar.gz qemu-4de1797ff6ceb7387cdb967ec1fa0128624ff405.tar.bz2 |
ui/dbus: add Listener.Unix.Map interface XML
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Message-ID: <20241008125028.1177932-16-marcandre.lureau@redhat.com>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/dbus-display1.xml | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/ui/dbus-display1.xml b/ui/dbus-display1.xml index d5bb279..e70f284 100644 --- a/ui/dbus-display1.xml +++ b/ui/dbus-display1.xml @@ -470,6 +470,53 @@ </interface> <!-- + org.qemu.Display1.Listener.Unix.Map: + + This optional client-side interface can complement + org.qemu.Display1.Listener on ``/org/qemu/Display1/Listener`` for + Unix-specific shared memory scanouts. + --> + <?if $(env.HOST_OS) != windows?> + <interface name="org.qemu.Display1.Listener.Unix.Map"> + <!-- + ScanoutMap: + @handle: the shared map FD. + @offset: mapping offset, in bytes. + @width: display width, in pixels. + @height: display height, in pixels. + @stride: stride, in bytes. + @pixman_format: image format (ex: ``PIXMAN_X8R8G8B8``). + + Resize and update the display content with a shared map. + --> + <method name="ScanoutMap"> + <arg type="h" name="handle" direction="in"/> + <arg type="u" name="offset" direction="in"/> + <arg type="u" name="width" direction="in"/> + <arg type="u" name="height" direction="in"/> + <arg type="u" name="stride" direction="in"/> + <arg type="u" name="pixman_format" direction="in"/> + </method> + + <!-- + UpdateMap: + @x: the X update position, in pixels. + @y: the Y update position, in pixels. + @width: the update width, in pixels. + @height: the update height, in pixels. + + Update the display content with the current shared map and the given region. + --> + <method name="UpdateMap"> + <arg type="i" name="x" direction="in"/> + <arg type="i" name="y" direction="in"/> + <arg type="i" name="width" direction="in"/> + <arg type="i" name="height" direction="in"/> + </method> + </interface> + <?endif?> + + <!-- org.qemu.Display1.Listener.Win32.Map: This optional client-side interface can complement |