mirror of git://git.sysmocom.de/ofono
Utilize call_watches
This commit is contained in:
parent
99e3fe8285
commit
9ca3c0e321
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue