summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrzej Zaborowski <andrew.zaborowski@intel.com>2010-06-11 12:39:54 +0200
committerDenis Kenzior <denkenz@gmail.com>2010-06-15 12:35:18 -0500
commitdf8f6115ca30e564c90cb7c9ce487c054bfe47bc (patch)
treef1011b0879e067fc6f7e2cc840cfc29075f2271d /src
parent024123c51bcba9a80da7fe7ec4b23fd9969f3620 (diff)
downloadofono-df8f6115ca30e564c90cb7c9ce487c054bfe47bc.tar.bz2
stkutil: Add the USSD Download envelope builder
Diffstat (limited to 'src')
-rw-r--r--src/stkutil.c10
-rw-r--r--src/stkutil.h5
2 files changed, 15 insertions, 0 deletions
diff --git a/src/stkutil.c b/src/stkutil.c
index a945ef32..2efd25a8 100644
--- a/src/stkutil.c
+++ b/src/stkutil.c
@@ -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;
};
diff --git a/src/stkutil.h b/src/stkutil.h
index baeaedbd..74ec6009 100644
--- a/src/stkutil.h
+++ b/src/stkutil.h
@@ -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;
};
};