the connections. The returned list should be freed with g_list_free, after its elements have been unreffed with unref.