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;
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);
}