filter_connections


Description:

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

Filters a given array of connections for a given AccessPoint object and returns connections which may be activated with the access point.

Any returned connections will match the this's SSID and (if given) BSSID and other attributes like security settings, channel, etc.

To obtain the list of connections that are compatible with this access point, use get_connections and then filter the returned list for a given Device using filter_connections and finally filter that list with this function.

Parameters:

this

an AccessPoint 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.