summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2009-09-21 23:04:53 -0500
committerDenis Kenzior <denkenz@gmail.com>2009-09-22 00:07:07 -0500
commit5fd083f6f4b1daf9affc9a6c8415db015a57d8c7 (patch)
treebee72ce32dc04af6db383ffa59af304dda29351e /include
parent7d7732d63747f742bdf1fcfb0b804515786da58e (diff)
downloadofono-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 'include')
-rw-r--r--include/sim.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/sim.h b/include/sim.h
index 3d618270..af2fd1eb 100644
--- a/include/sim.h
+++ b/include/sim.h
@@ -85,7 +85,8 @@ typedef void (*ofono_sim_file_read_cb_t)(int ok,
typedef void (*ofono_sim_file_write_cb_t)(int ok, void *userdata);
typedef void (*ofono_sim_passwd_cb_t)(const struct ofono_error *error,
- int passwd_type, void *data);
+ enum ofono_sim_password_type type,
+ void *data);
typedef void (*ofono_sim_lock_unlock_cb_t)(const struct ofono_error *error,
void *data);
@@ -127,8 +128,8 @@ struct ofono_sim_driver {
enum ofono_sim_password_type type,
const char *old, const char *new,
ofono_sim_lock_unlock_cb_t cb, void *data);
- void (*lock)(struct ofono_sim *sim, int passwd_type, int enable,
- const char *passwd,
+ void (*lock)(struct ofono_sim *sim, enum ofono_sim_password_type type,
+ int enable, const char *passwd,
ofono_sim_lock_unlock_cb_t cb, void *data);
};