Utilize call_watches

This commit is contained in:
Denis Kenzior 2009-08-14 16:21:23 -05:00
parent 99e3fe8285
commit 9ca3c0e321
1 changed files with 5 additions and 1 deletions

View File

@ -177,13 +177,17 @@ void __ofono_atom_register(struct ofono_atom *atom,
return; return;
atom->unregister = unregister; atom->unregister = unregister;
call_watches(atom, OFONO_ATOM_WATCH_CONDITION_REGISTERED);
} }
void __ofono_atom_unregister(struct ofono_atom *atom) void __ofono_atom_unregister(struct ofono_atom *atom)
{ {
if (atom->unregister == NULL) if (atom->unregister == NULL)
return; return;
call_watches(atom, OFONO_ATOM_WATCH_CONDITION_UNREGISTERED);
atom->unregister(atom); atom->unregister(atom);
} }