ip4_addresses_from_variant


Description:


public GenericArray<IPAddress> ip4_addresses_from_variant (Variant value, out string? out_gateway)

Utility function to convert a Variant of type 'aau' representing a list of NetworkManager IPv4 addresses (which are tuples of address, prefix, and gateway) into a GenericArray of IPAddress objects.

The "gateway" field of the first address (if set) will be returned in out_gateway; the "gateway" fields of the other addresses are ignored.

Parameters:

value

a Variant of type 'aau'

out_gateway

on return, will contain the IP gateway

Returns:

a newly allocated GenericArray of IPAddress objects


Namespace: NM.Utils
Package: libnm