summaryrefslogtreecommitdiff
path: root/src/devices/wwan/nm-modem-manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/wwan/nm-modem-manager.c')
-rw-r--r--src/devices/wwan/nm-modem-manager.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/devices/wwan/nm-modem-manager.c b/src/devices/wwan/nm-modem-manager.c
index 463e042ff9..63470148d4 100644
--- a/src/devices/wwan/nm-modem-manager.c
+++ b/src/devices/wwan/nm-modem-manager.c
@@ -136,6 +136,20 @@ remove_one_modem (gpointer key, gpointer value, gpointer user_data)
/*****************************************************************************/
+NMModem **
+nm_modem_manager_get_modems (NMModemManager *self,
+ guint *out_len)
+{
+ g_return_val_if_fail (NM_IS_MODEM_MANAGER (self), NULL);
+
+ return (NMModem **) nm_utils_hash_values_to_array (NM_MODEM_MANAGER_GET_PRIVATE (self)->modems,
+ NULL,
+ NULL,
+ out_len);
+}
+
+/*****************************************************************************/
+
static void
modm_clear_manager (NMModemManager *self)
{