settings: add nm_settings_get_connections()
This will replace nm_connection_provider_get_connections(), but has a different API. Instead of returning a (const) GSList list, it returns a (cached) NULL terminated array. The reason for this change is simply that I find arrays more convenient to use (in this case) and it doesn't have the overhead of a GSList instance per entry. Like with nm_connection_provider_get_connections(), cache the result internally. This for one is more convenient for the caller, which doesn't need to free the result. On the other hand, the list of connections is fairly static, this allows us to reuse the same list.
Showing with 53 additions and 3 deletions