ui/dbus: win32 support
commit6cc5a6159a0067fefbe0b7912c187018aa4b460a
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 6 Jun 2023 11:56:42 +0000 (6 15:56 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 27 Jun 2023 15:08:56 +0000 (27 17:08 +0200)
treec93a2f6020beaeba7a6c1acc5b3abb476a39372a
parent9b286e76c858bb015c70261cc85f34952ba1d155
ui/dbus: win32 support

D-Bus doesn't support fd-passing on Windows (AF_UNIX doesn't have
SCM_RIGHTS yet, but there are other means to share objects. I have
proposed various solutions upstream, but none seem fitting enough atm).

To make the "-display dbus" work on Windows, implement an alternative
D-Bus interface where all the 'h' (FDs) arguments are replaced with
'ay' (WSASocketW data), and sockets are passed to the other end via
WSADuplicateSocket().

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20230606115658.677673-6-marcandre.lureau@redhat.com>
audio/dbusaudio.c
meson.build
ui/dbus-chardev.c
ui/dbus-console.c
ui/dbus-display1.xml
ui/dbus.h
ui/meson.build