mirror of git://git.sysmocom.de/ofono
Remove unneeded functions
This commit is contained in:
parent
b945c111b7
commit
bed14e8527
26
src/sim.c
26
src/sim.c
|
@ -848,29 +848,3 @@ void ofono_sim_manager_exit(struct ofono_modem *modem)
|
|||
|
||||
modem->sim_manager = 0;
|
||||
}
|
||||
|
||||
int ofono_spn_update_notify_register(struct ofono_modem *modem,
|
||||
update_spn_cb cb)
|
||||
{
|
||||
if (modem->sim_manager == NULL)
|
||||
return -1;
|
||||
|
||||
modem->sim_manager->update_spn_notify =
|
||||
g_slist_append(modem->sim_manager->update_spn_notify, cb);
|
||||
|
||||
if (modem->sim_manager->spn)
|
||||
sim_spn_notify(modem, cb);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int ofono_spn_update_notify_unregister(struct ofono_modem *modem,
|
||||
update_spn_cb cb)
|
||||
{
|
||||
if (modem->sim_manager == NULL)
|
||||
return -1;
|
||||
|
||||
modem->sim_manager->update_spn_notify =
|
||||
g_slist_remove(modem->sim_manager->update_spn_notify, cb);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -19,15 +19,9 @@
|
|||
*
|
||||
*/
|
||||
|
||||
typedef void (*update_spn_cb)(struct ofono_modem *modem, const char *spn,
|
||||
int home_plmn_dpy, int roaming_spn_dpy);
|
||||
|
||||
void ofono_sim_manager_init(struct ofono_modem *modem);
|
||||
void ofono_sim_manager_exit(struct ofono_modem *modem);
|
||||
int ofono_spn_update_notify_register(struct ofono_modem *modem,
|
||||
update_spn_cb cb);
|
||||
int ofono_spn_update_notify_unregister(struct ofono_modem *modem,
|
||||
update_spn_cb cb);
|
||||
|
||||
gboolean ofono_operator_in_spdi(struct ofono_modem *modem,
|
||||
const struct ofono_network_operator *op);
|
||||
|
|
Loading…
Reference in New Issue