diff options
author | Yang Gu <yang.gu@intel.com> | 2010-03-23 12:33:49 +0800 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-03-23 12:12:03 -0500 |
commit | 0ef68e31e24a55910804e296644621af3f842ec6 (patch) | |
tree | d15416929675290c8cfd43909fbc9d7553880eab /src/stkutil.h | |
parent | 0ff704e488438a00e52a7c28125eba682be807a8 (diff) | |
download | ofono-0ef68e31e24a55910804e296644621af3f842ec6.tar.bz2 |
Add parser for file list objects
Diffstat (limited to 'src/stkutil.h')
-rw-r--r-- | src/stkutil.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/stkutil.h b/src/stkutil.h index 1d690b5d..93ac8544 100644 --- a/src/stkutil.h +++ b/src/stkutil.h @@ -345,6 +345,17 @@ struct stk_result { unsigned char *additional; }; +/* Define the struct of single file in TS102.223 Section 8.18. + * According to TS 11.11 Section 6.2, each file id has two bytes, and the + * maximum Dedicated File level is 2. So the maximum size of file is 8, which + * contains two bytes of Master File, 2 bytes of 1st level Dedicated File, + * 2 bytes of 2nd level Dedicated File and 2 bytes of Elementary File. + */ +struct stk_file { + unsigned char file[8]; + unsigned int len; +}; + /* * According to 102.223 Section 8.72 the length of text attribute CTLV is 1 * byte. This means that the maximum size is 127 according to the rules |