summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modem.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/modem.c b/src/modem.c
index e58dfad3..9c8f265c 100644
--- a/src/modem.c
+++ b/src/modem.c
@@ -153,6 +153,23 @@ struct ofono_modem *__ofono_atom_get_modem(struct ofono_atom *atom)
return atom->modem;
}
+static void call_watches(struct ofono_atom *atom,
+ enum ofono_atom_watch_condition cond)
+{
+ struct ofono_modem *modem = atom->modem;
+ GSList *l;
+ struct ofono_atom_watch *watch;
+
+ for (l = modem->atom_watches; l; l = l->next) {
+ watch = l->data;
+
+ if (watch->type != atom->type)
+ continue;
+
+ watch->notify(atom, cond, watch->notify_data);
+ }
+}
+
void __ofono_atom_register(struct ofono_atom *atom,
void (*unregister)(struct ofono_atom *))
{