diff options
author | Denis Kenzior <denkenz@gmail.com> | 2009-09-21 23:04:53 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2009-09-22 00:07:07 -0500 |
commit | 5fd083f6f4b1daf9affc9a6c8415db015a57d8c7 (patch) | |
tree | bee72ce32dc04af6db383ffa59af304dda29351e /src | |
parent | 7d7732d63747f742bdf1fcfb0b804515786da58e (diff) | |
download | ofono-5fd083f6f4b1daf9affc9a6c8415db015a57d8c7.tar.bz2 |
Refactor: Do not use int instead of enum
27.007 does not define an enumeration for SIM PIN/PUK values. This
should be handled by ofono enum instead
Diffstat (limited to 'src')
-rw-r--r-- | src/sim.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -78,7 +78,7 @@ struct ofono_sim { GSList *service_numbers; gboolean sdn_ready; gboolean ready; - int pin_type; + enum ofono_sim_password_type pin_type; char **language_prefs; GQueue *simop_q; gint simop_source; @@ -569,7 +569,7 @@ static DBusMessage *sim_enter_pin(DBusConnection *conn, DBusMessage *msg, struct ofono_sim *sim = data; DBusMessageIter iter; const char *typestr; - int type; + enum ofono_sim_password_type type; const char *pin; if (!sim->driver->send_passwd) @@ -611,7 +611,7 @@ static DBusMessage *sim_reset_pin(DBusConnection *conn, DBusMessage *msg, struct ofono_sim *sim = data; DBusMessageIter iter; const char *typestr; - int type; + enum ofono_sim_password_type type; const char *puk; const char *pin; @@ -926,7 +926,8 @@ static void sim_retrieve_imsi(struct ofono_sim *sim) sim->driver->read_imsi(sim, sim_imsi_cb, sim); } -static void sim_pin_query_cb(const struct ofono_error *error, int pin_type, +static void sim_pin_query_cb(const struct ofono_error *error, + enum ofono_sim_password_type pin_type, void *data) { struct ofono_sim *sim = data; |