Skip to content
  • David Zeuthen's avatar
    GDBus: Add support for D-Bus type 'h' (ie. G_VARIANT_TYPE_HANDLE) · 2be167f5
    David Zeuthen authored
    
    
    This allows sending and receiving D-Bus messages with instances of the
    'h' D-Bus type. Unlike libdbus-1's dbus_message_iter_get_basic()
    method, g_variant_get_handle() does not return a duplicated unix file
    descriptor (that must be closed with close(2)) - instead, it returns
    an index that can be used to get/dup the file descriptor from a
    GUnixFDList object that can be obtained from the GDBusMessage object.
    
    Signed-off-by: default avatarDavid Zeuthen <davidz@redhat.com>
    2be167f5