filter_connections
Description:
Filters a given list of connections for a given Device object and return connections which may be activated with the device.
For example if this is a Wi-Fi device that supports only WEP encryption, the returned list will contain any
Wi-Fi connections in connections
that allow connection to unencrypted or WEP-enabled SSIDs. The returned list 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 list_connections.
Parameters:
this |
an Device 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 |