summaryrefslogtreecommitdiffstats
path: root/src/stkutil.h
diff options
context:
space:
mode:
authorAndrzej Zaborowski <andrew.zaborowski@intel.com>2010-06-07 12:08:24 +0200
committerDenis Kenzior <denkenz@gmail.com>2010-06-09 12:23:13 -0500
commit8be222d46ea7254a0d033f471fb85a4c543a9980 (patch)
tree0e7bb749571867938e074d3756d045a0f5a5ed12 /src/stkutil.h
parentef408ae1a65be6986c3468e9319be4c3a7028c61 (diff)
downloadofono-8be222d46ea7254a0d033f471fb85a4c543a9980.tar.bz2
stkutil: Add SMS-PP Data Download envelope builder
Diffstat (limited to 'src/stkutil.h')
-rw-r--r--src/stkutil.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/stkutil.h b/src/stkutil.h
index 7dd0d6c1..cc293ca8 100644
--- a/src/stkutil.h
+++ b/src/stkutil.h
@@ -1172,9 +1172,26 @@ struct stk_response {
void (*destructor)(struct stk_response *response);
};
+/* ENVELOPEs defined in TS 102.223 Section 7 */
+struct stk_envelope_sms_pp_download {
+ struct stk_address address;
+ struct sms_deliver message;
+};
+
+struct stk_envelope {
+ enum stk_envelope_type type;
+ enum stk_device_identity_type src;
+ enum stk_device_identity_type dst;
+ union {
+ struct stk_envelope_sms_pp_download sms_pp_download;
+ };
+};
+
struct stk_command *stk_command_new_from_pdu(const unsigned char *pdu,
unsigned int len);
void stk_command_free(struct stk_command *command);
const unsigned char *stk_pdu_from_response(const struct stk_response *response,
unsigned int *out_length);
+const unsigned char *stk_pdu_from_envelope(const struct stk_envelope *envelope,
+ unsigned int *out_length);