mirror of git://git.sysmocom.de/ofono
Rework ofono_modem_remove_atom
Change to ofono_atom_free since the atom now carries all necessary information about the modem it is attached to
This commit is contained in:
parent
9020b1dc7e
commit
6119c08c28
|
@ -180,11 +180,9 @@ struct ofono_atom *__ofono_modem_find_atom(struct ofono_modem *modem,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
void __ofono_modem_remove_atom(struct ofono_modem *modem,
|
||||
struct ofono_atom *atom)
|
||||
void __ofono_atom_free(struct ofono_atom *atom)
|
||||
{
|
||||
if (modem == NULL)
|
||||
return;
|
||||
struct ofono_modem *modem = atom->modem;
|
||||
|
||||
modem->atoms = g_slist_remove(modem->atoms, atom);
|
||||
|
||||
|
|
|
@ -123,8 +123,7 @@ void __ofono_atom_register(struct ofono_atom *atom,
|
|||
void (*unregister)(struct ofono_atom *));
|
||||
void __ofono_atom_unregister(struct ofono_atom *atom);
|
||||
|
||||
void __ofono_modem_remove_atom(struct ofono_modem *modem,
|
||||
struct ofono_atom *atom);
|
||||
void __ofono_atom_free(struct ofono_atom *atom);
|
||||
|
||||
#include <ofono/call-barring.h>
|
||||
#include <ofono/call-forwarding.h>
|
||||
|
|
Loading…
Reference in New Issue