Function

NM-1.0NMutils_ip_addresses_from_variantSince 1.42

  • Utility function to convert a GLib.Variant representing a list of new-style NetworkManager IPv4 or IPv6 addresses (as described in the documentation for nm_utils_ip_addresses_to_variant()) into a GLib.PtrArray of NM.IPAddress objects. Note that invalid addresses are discarded but the valid addresses are still returned.

    Since 1.46, an empty list is returned if the variant type is not valid (before it was checked as assertion)

    Parameters

    Returns IPAddress[]

    a newly allocated GLib.PtrArray of NM.IPAddress objects

    1.42