summaryrefslogtreecommitdiffstats
path: root/src/modem.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modem.c')
-rw-r--r--src/modem.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/modem.c b/src/modem.c
index 412dfb96..9128f0d4 100644
--- a/src/modem.c
+++ b/src/modem.c
@@ -1550,3 +1550,14 @@ void __ofono_modem_shutdown()
if (modems_remaining == 0)
__ofono_exit();
}
+
+void __ofono_modem_foreach(ofono_modem_foreach_func func, void *userdata)
+{
+ struct ofono_modem *modem;
+ GSList *l;
+
+ for (l = g_modem_list; l; l = l->next) {
+ modem = l->data;
+ func(modem, userdata);
+ }
+}