mirror of git://git.sysmocom.de/ofono
Add atom get_registered function
This commit is contained in:
parent
e36c8b1d5d
commit
6482d98e56
|
@ -190,6 +190,11 @@ void __ofono_atom_unregister(struct ofono_atom *atom)
|
||||||
atom->unregister(atom);
|
atom->unregister(atom);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gboolean __ofono_atom_get_registered(struct ofono_atom *atom)
|
||||||
|
{
|
||||||
|
return atom->unregister ? TRUE : FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
int __ofono_modem_add_atom_watch(struct ofono_modem *modem,
|
int __ofono_modem_add_atom_watch(struct ofono_modem *modem,
|
||||||
enum ofono_atom_type type,
|
enum ofono_atom_type type,
|
||||||
ofono_atom_watch_func notify,
|
ofono_atom_watch_func notify,
|
||||||
|
|
|
@ -136,6 +136,8 @@ void __ofono_atom_register(struct ofono_atom *atom,
|
||||||
void (*unregister)(struct ofono_atom *));
|
void (*unregister)(struct ofono_atom *));
|
||||||
void __ofono_atom_unregister(struct ofono_atom *atom);
|
void __ofono_atom_unregister(struct ofono_atom *atom);
|
||||||
|
|
||||||
|
gboolean __ofono_atom_get_registered(struct ofono_atom *atom);
|
||||||
|
|
||||||
int __ofono_modem_add_atom_watch(struct ofono_modem *modem,
|
int __ofono_modem_add_atom_watch(struct ofono_modem *modem,
|
||||||
enum ofono_atom_type type,
|
enum ofono_atom_type type,
|
||||||
ofono_atom_watch_func notify,
|
ofono_atom_watch_func notify,
|
||||||
|
|
Loading…
Reference in New Issue