diff options
Diffstat (limited to 'src/stkutil.h')
-rw-r--r-- | src/stkutil.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/stkutil.h b/src/stkutil.h index 98da7094..52b62af4 100644 --- a/src/stkutil.h +++ b/src/stkutil.h @@ -365,6 +365,11 @@ enum stk_battery_state { STK_BATTERY_FULL = 0x04 }; +enum stk_frame_layout_type { + STK_LAYOUT_HORIZONTAL = 0x01, + STK_LAYOUT_VERTICAL = 0x02 +}; + /* For data object that only has a byte array with undetermined length */ struct stk_common_byte_array { unsigned char *array; @@ -693,6 +698,17 @@ struct stk_item_text_attribute_list { unsigned char len; }; +/* + * According to 102.223 Section 8.78 the length of CTLV is 1 byte. This means + * that the maximum length is 127 bytes for the total length of layout and + * relative-sized frame. Thus the maximum length of relative size is 126 bytes. + */ +struct stk_frame_layout { + unsigned char layout; + unsigned char size[126]; + unsigned int len; +}; + struct stk_command_display_text { char *text; struct stk_icon_id icon_id; |