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;
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue