diff options
author | Andrzej Zaborowski <andrew.zaborowski@intel.com> | 2010-06-07 12:08:24 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-06-09 12:23:13 -0500 |
commit | 8be222d46ea7254a0d033f471fb85a4c543a9980 (patch) | |
tree | 0e7bb749571867938e074d3756d045a0f5a5ed12 /src/stkutil.h | |
parent | ef408ae1a65be6986c3468e9319be4c3a7028c61 (diff) | |
download | ofono-8be222d46ea7254a0d033f471fb85a4c543a9980.tar.bz2 |
stkutil: Add SMS-PP Data Download envelope builder
Diffstat (limited to 'src/stkutil.h')
-rw-r--r-- | src/stkutil.h | 17 |
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); |