stkutil: Add the USSD Download envelope builder

This commit is contained in:
Andrzej Zaborowski 2010-06-11 12:39:54 +02:00 committed by Denis Kenzior
parent 024123c51b
commit df8f6115ca
2 changed files with 15 additions and 0 deletions

View File

@ -5055,6 +5055,16 @@ const unsigned char *stk_pdu_from_envelope(const struct stk_envelope *envelope,
&envelope->timer_expiration.value,
NULL);
break;
case STK_ENVELOPE_TYPE_USSD_DOWNLOAD:
ok = build_dataobj(&builder,
build_envelope_dataobj_device_ids,
DATAOBJ_FLAG_CR,
envelope,
build_dataobj_ussd_string,
DATAOBJ_FLAG_CR,
&envelope->ussd_data_download.string,
NULL);
break;
default:
return NULL;
};

View File

@ -1433,6 +1433,10 @@ struct stk_envelope_timer_expiration {
struct stk_timer_value value;
};
struct stk_envelope_ussd_data_download {
struct stk_ussd_string string;
};
struct stk_envelope {
enum stk_envelope_type type;
enum stk_device_identity_type src;
@ -1445,6 +1449,7 @@ struct stk_envelope {
struct stk_envelope_sms_mo_control sms_mo_control;
struct stk_envelope_event_download event_download;
struct stk_envelope_timer_expiration timer_expiration;
struct stk_envelope_ussd_data_download ussd_data_download;
};
};