NetworkManager/src/devices/wwan
Thomas Haller e17cd1d742 core: avoid clone of all-connections list for nm_utils_complete_generic()
NMSettings exposes a cached list of all connection. We don't need
to clone it. Note that this is not save against concurrent modification,
meaning, add/remove of connections in NMSettings will invalidate the
list.

However, it wasn't save against that previously either, because
altough we cloned the container (GSList), we didn't take an additional
reference to the elements.

This is purely a performance optimization, we don't need to clone the
list. Also, since the original list is of type "NMConnection *const*",
use that type insistently, instead of dependent API requiring GSList.

IMO, GSList is anyway not a very nice API for many use cases because
it requires an additional slice allocation for each element. It's
slower, and often less convenient to use.
2018-03-20 15:08:18 +01:00
..
libnm-wwan.ver wwan: drop nm_modem_get_data_port() function 2018-02-21 20:28:46 +01:00
meson.build core/dbus: rework D-Bus implementation to use lower layer GDBusConnection API 2018-03-12 18:37:08 +01:00
nm-device-modem.c core: avoid clone of all-connections list for nm_utils_complete_generic() 2018-03-20 15:08:18 +01:00
nm-device-modem.h build: don't add subdirectories to include search path but require qualified include 2016-11-21 14:26:37 +01:00
nm-modem-broadband.c core: avoid clone of all-connections list for nm_utils_complete_generic() 2018-03-20 15:08:18 +01:00
nm-modem-broadband.h core: refactor private data in "src" 2016-10-04 09:50:56 +02:00
nm-modem-manager.c core,clients: use our own string hashing function nm_str_hash() 2017-10-18 13:05:00 +02:00
nm-modem-manager.h bt: track name-owner changes via NMModemManager and create D-Bus proxy asynchronously 2017-05-12 17:29:33 +02:00
nm-modem-ofono.c wwan: rework setting modem's data-port 2018-02-21 20:28:46 +01:00
nm-modem-ofono.h core: refactor private data in "src" 2016-10-04 09:50:56 +02:00
nm-modem.c core: avoid clone of all-connections list for nm_utils_complete_generic() 2018-03-20 15:08:18 +01:00
nm-modem.h core: avoid clone of all-connections list for nm_utils_complete_generic() 2018-03-20 15:08:18 +01:00
nm-wwan-factory.c wwan: drop nm_modem_get_data_port() function 2018-02-21 20:28:46 +01:00