Add atom get_registered function

This commit is contained in:
Denis Kenzior 2009-08-14 18:47:12 -05:00
parent e36c8b1d5d
commit 6482d98e56
2 changed files with 7 additions and 0 deletions

View File

@ -190,6 +190,11 @@ void __ofono_atom_unregister(struct ofono_atom *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,
enum ofono_atom_type type,
ofono_atom_watch_func notify,

View File

@ -136,6 +136,8 @@ void __ofono_atom_register(struct ofono_atom *atom,
void (*unregister)(struct ofono_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,
enum ofono_atom_type type,
ofono_atom_watch_func notify,