Skip to content
  • Dan Winship's avatar
    libnm-glib: simplify handling of object and object array properties · cc90f101
    Dan Winship authored and Dan Williams's avatar Dan Williams committed
    Add an "object_type" field to NMPropertiesInfo, and use that with
    DBUS_TYPE_G_OBJECT_PATH and DBUS_TYPE_G_ARRAY_OF_OBJECT_PATH
    properties so that we don't need custom marshallers for each one.
    
    When creating an NMDevice or NMActiveConnection, we need to fetch an
    extra property first to figure out the exact subclass to use, so add a
    bit of infrastructure for that as well. Also, do that preprocessing
    asynchronously when processing a property change notification, so that
    it doesn't block the main loop.
    cc90f101