filter_connections


Description:

public SList<unowned Connection> filter_connections (SList<Connection> connections)

Filters a given list of connections for a given AccessPoint object and return 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 list_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

a list of Connection objects to filter

Returns:

a list of Connection objects that could be activated with the given this. The elements of the list are owned by their creator and should not be freed by the caller, but the returned list itself is owned by the caller and should be freed with g_slist_free when it is no longer required.