From 9ca3c0e321ccc7984f60c7f43a9fe1c536b99980 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Fri, 14 Aug 2009 16:21:23 -0500 Subject: [PATCH] Utilize call_watches --- src/modem.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/modem.c b/src/modem.c index 9c8f265..96afffb 100644 --- a/src/modem.c +++ b/src/modem.c @@ -177,13 +177,17 @@ void __ofono_atom_register(struct ofono_atom *atom, return; atom->unregister = unregister; + + call_watches(atom, OFONO_ATOM_WATCH_CONDITION_REGISTERED); } void __ofono_atom_unregister(struct ofono_atom *atom) { if (atom->unregister == NULL) return; - + + call_watches(atom, OFONO_ATOM_WATCH_CONDITION_UNREGISTERED); + atom->unregister(atom); } -- 2.7.4