filter_connections


Description:

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

Filters a given array of connections for a given WifiP2PPeer object and returns connections which may be activated with the P2P peer.

Any returned connections will match the peers's HW address and in the future possibly other attributes.

To obtain the list of connections that are compatible with this P2P peer, 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 WifiP2PPeer 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.