diff options
author | Simon Busch <morphis@gravedo.de> | 2012-09-03 05:50:37 +0200 |
---|---|---|
committer | Simon Busch <morphis@gravedo.de> | 2012-09-09 12:22:48 +0200 |
commit | ce4b30cb8c87e1832fd96d264207389c19d14f77 (patch) | |
tree | de50d5f0e4650efe08d1540eafdfa90b32bb58c9 /samsung-ipc | |
parent | 807ad0478f8805de91f185021a666111a6abb4a7 (diff) | |
download | external_libsamsung-ipc-ce4b30cb8c87e1832fd96d264207389c19d14f77.zip external_libsamsung-ipc-ce4b30cb8c87e1832fd96d264207389c19d14f77.tar.gz external_libsamsung-ipc-ce4b30cb8c87e1832fd96d264207389c19d14f77.tar.bz2 |
sec: add setup method for ipc_sec_phone_lock_set message type
Diffstat (limited to 'samsung-ipc')
-rw-r--r-- | samsung-ipc/sec.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/samsung-ipc/sec.c b/samsung-ipc/sec.c index ddc2097..0074ffb 100644 --- a/samsung-ipc/sec.c +++ b/samsung-ipc/sec.c @@ -86,4 +86,17 @@ char* ipc_sec_rsim_access_response_get_file_data(struct ipc_message_info *respon return file_data; } +void ipc_sec_phone_lock_set_setup(struct ipc_sec_phone_lock_set *message, + int pin_type, int enable, char *passwd) +{ + message->type = pin_type; + message->lock = enable ? 1 : 0; + + if (passwd != NULL) + { + strncpy((char*) message->password, passwd, 39); + message->length = strlen(passwd); + } +} + // vim:ts=4:sw=4:expandtab |