ip4_addresses_to_variant
Description:
public unowned Variant ip4_addresses_to_variant (GenericArray<IPAddress> addresses, string? gateway)
Utility function to convert a GenericArray of IPAddress objects representing IPv4 addresses into a 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:
addresses |
an array of IPAddress objects |
gateway |
the gateway IP address |
Returns:
a new floating Variant representing |
Namespace: NM.Utils
Package: libnm