Function

NM-1.0NMutils_ip4_addresses_to_variant

  • Utility function to convert a GLib.PtrArray of NM.IPAddress objects representing IPv4 addresses into a GLib.Variant of type 'aau' representing an array of NetworkManager IPv4 addresses (which are tuples of address, prefix, and gateway). The "gateway" field of the first address will get the value of gateway (if non-null). In all of the other addresses, that field will be 0.

    Parameters

    Returns GLib.Variant

    a new floating GLib.Variant representing addresses.