filter_connections


Description:

public GenericArray<Connection> filter_connections (GenericArray<Connection> connections)

Filters a given array of connections for a given Device object and returns connections which may be activated with the device.

For example if this is a Wi-Fi device that supports only WEP encryption, the returned array will contain any Wi-Fi connections in connections that allow connection to unencrypted or WEP-enabled SSIDs. The returned array will not contain Ethernet, Bluetooth, Wi-Fi WPA connections, or any other connection that is incompatible with the device. To get the full list of connections see get_connections.

Parameters:

this

an Device to filter connections for

connections

an array of Connections to filter

Returns:

an array of Connections that could be activated with the given this. The array should be freed with g_ptr_array_unref when it is no longer required.

WARNING: the transfer annotation for this function may not work correctly with bindings. See https://gitlab.gnome.org/GNOME/gobject-introspection/-/issues/305. You can filter the list yourself with connection_valid.




2022 vala-language.org