summaryrefslogtreecommitdiffstats
path: root/src/stkutil.h
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2010-02-27 10:19:51 -0600
committerDenis Kenzior <denkenz@gmail.com>2010-02-27 10:19:51 -0600
commit6497d29719c55cec2ffc6b36e19c51baaac4c391 (patch)
treeea9d88313b71941bd4d404665ade0c49eb18f5de /src/stkutil.h
parent5144254f626cc3eeb61a180948e0883cd2fe1696 (diff)
downloadofono-6497d29719c55cec2ffc6b36e19c51baaac4c391.tar.bz2
stk: Add text attribute structure
Diffstat (limited to 'src/stkutil.h')
-rw-r--r--src/stkutil.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/stkutil.h b/src/stkutil.h
index 01864de6..e9c4e463 100644
--- a/src/stkutil.h
+++ b/src/stkutil.h
@@ -209,11 +209,23 @@ struct stk_duration {
unsigned char interval;
};
+/*
+ * 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
+ * of CTLVs. Empty attribute options will have len of 0.
+ */
+struct stk_text_attribute {
+ unsigned char attributes[127];
+ unsigned char len;
+};
+
struct stk_command_display_text {
char *text;
struct stk_icon_identifier icon_id;
ofono_bool_t immediate_response;
struct stk_duration duration;
+ struct stk_text_attribute text_attribute;
+ unsigned char frame_id; /* Values 0x10 to 0xFF reserved */
};
struct stk_command {