stkutil: Add MO SMS Control envelope builder

This commit is contained in:
Andrzej Zaborowski 2010-06-07 12:08:36 +02:00 committed by Denis Kenzior
parent 70b09d1742
commit 5684577171
2 changed files with 23 additions and 0 deletions

View File

@ -4267,6 +4267,22 @@ const unsigned char *stk_pdu_from_envelope(const struct stk_envelope *envelope,
&envelope->menu_selection.help_request,
NULL);
break;
case STK_ENVELOPE_TYPE_MO_SMS_CONTROL:
/*
* Comprehension Required according to the specs but not
* enabled in conformance tests in 3GPP 31.124.
*/
ok = build_dataobj(&builder,
build_envelope_dataobj_device_ids, 0,
envelope,
build_dataobj_address, 0,
&envelope->sms_mo_control.sc_address,
build_dataobj_address, 0,
&envelope->sms_mo_control.dest_address,
build_dataobj_location_info, 0,
&envelope->sms_mo_control.location,
NULL);
break;
default:
return NULL;
};

View File

@ -1187,6 +1187,12 @@ struct stk_envelope_menu_selection {
ofono_bool_t help_request;
};
struct stk_envelope_sms_mo_control {
struct stk_address sc_address;
struct stk_address dest_address;
struct stk_location_info location;
};
struct stk_envelope {
enum stk_envelope_type type;
enum stk_device_identity_type src;
@ -1195,6 +1201,7 @@ struct stk_envelope {
struct stk_envelope_sms_pp_download sms_pp_download;
struct stk_envelope_cbs_pp_download cbs_pp_download;
struct stk_envelope_menu_selection menu_selection;
struct stk_envelope_sms_mo_control sms_mo_control;
};
};