diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-08-31 19:11:44 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-09-01 12:06:59 -0500 |
commit | 4b43650116484e37a469428b4d56c6db7d704f43 (patch) | |
tree | e91fbc6f54d62ca8f2ff47c3ac4ca89e1ea9b1a2 /src | |
parent | 0cf73b73eb379711612c8dec6151f91dc92c0211 (diff) | |
download | ofono-4b43650116484e37a469428b4d56c6db7d704f43.tar.bz2 |
sim: cleanup sim atom private structure
The number of elements was getting out of hand and out of order
Diffstat (limited to 'src')
-rw-r--r-- | src/sim.c | 51 |
1 files changed, 31 insertions, 20 deletions
@@ -70,39 +70,50 @@ struct sim_file_op { }; struct ofono_sim { + /* Contents of the SIM file system, in rough initialization order */ char *iccid; - char *imsi; + + char **language_prefs; + unsigned char *efli; + unsigned char efli_length; + + enum ofono_sim_password_type pin_type; + gboolean locked_pins[OFONO_SIM_PASSWORD_SIM_PUK]; /* Number of PINs */ + enum ofono_sim_phase phase; unsigned char mnc_length; + enum ofono_sim_cphs_phase cphs_phase; + unsigned char cphs_service_table[2]; + unsigned char *efust; + unsigned char efust_length; + unsigned char *efest; + unsigned char efest_length; + unsigned char *efsst; + unsigned char efsst_length; + + char *imsi; + GSList *own_numbers; GSList *new_numbers; - GSList *service_numbers; - gboolean sdn_ready; - enum ofono_sim_state state; - enum ofono_sim_password_type pin_type; - gboolean locked_pins[OFONO_SIM_PASSWORD_SIM_PUK]; /* Number of PINs */ - char **language_prefs; - GQueue *simop_q; - gint simop_source; unsigned char efmsisdn_length; unsigned char efmsisdn_records; - unsigned char *efli; - unsigned char efli_length; + + GSList *service_numbers; + gboolean sdn_ready; + unsigned char *efimg; unsigned short efimg_length; - enum ofono_sim_cphs_phase cphs_phase; - unsigned char cphs_service_table[2]; + + enum ofono_sim_state state; struct ofono_watchlist *state_watches; + + GQueue *simop_q; + gint simop_source; + + DBusMessage *pending; const struct ofono_sim_driver *driver; void *driver_data; struct ofono_atom *atom; - DBusMessage *pending; - unsigned char *efust; - unsigned char efust_length; - unsigned char *efest; - unsigned char efest_length; - unsigned char *efsst; - unsigned char efsst_length; }; struct msisdn_set_request { |