Skip to content
Snippets Groups Projects
  • Marc-André Lureau's avatar
    6cc5a615
    ui/dbus: win32 support · 6cc5a615
    Marc-André Lureau authored
    
    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: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
    Message-Id: <20230606115658.677673-6-marcandre.lureau@redhat.com>
    6cc5a615
    History
    ui/dbus: win32 support
    Marc-André Lureau authored
    
    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: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
    Message-Id: <20230606115658.677673-6-marcandre.lureau@redhat.com>
dbus.h 4.42 KiB