diff options
author | Andrzej Zaborowski <andrew.zaborowski@intel.com> | 2010-06-11 12:39:52 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-06-15 12:09:00 -0500 |
commit | dd9e095524077756a408cf0b5c2590f4065cca33 (patch) | |
tree | a7e8819de5933e5edc16272b0277923c0beaf975 | |
parent | 2f6dc72ae2a7858448dfa55ccf6173d2f6e135fc (diff) | |
download | ofono-dd9e095524077756a408cf0b5c2590f4065cca33.tar.bz2 |
stkutil: Add the Timer Expiration envelope builder
-rw-r--r-- | src/stkutil.c | 13 | ||||
-rw-r--r-- | src/stkutil.h | 6 |
2 files changed, 19 insertions, 0 deletions
diff --git a/src/stkutil.c b/src/stkutil.c index 9beac310..a945ef32 100644 --- a/src/stkutil.c +++ b/src/stkutil.c @@ -5042,6 +5042,19 @@ const unsigned char *stk_pdu_from_envelope(const struct stk_envelope *envelope, case STK_ENVELOPE_TYPE_EVENT_DOWNLOAD: ok = build_envelope_event_download(&builder, envelope); break; + case STK_ENVELOPE_TYPE_TIMER_EXPIRATION: + ok = build_dataobj(&builder, + build_envelope_dataobj_device_ids, + DATAOBJ_FLAG_CR, + envelope, + build_dataobj_timer_id, + DATAOBJ_FLAG_CR, + &envelope->timer_expiration.id, + build_dataobj_timer_value, + DATAOBJ_FLAG_CR, + &envelope->timer_expiration.value, + NULL); + break; default: return NULL; }; diff --git a/src/stkutil.h b/src/stkutil.h index ee206424..baeaedbd 100644 --- a/src/stkutil.h +++ b/src/stkutil.h @@ -1428,6 +1428,11 @@ struct stk_envelope_event_download { }; }; +struct stk_envelope_timer_expiration { + unsigned char id; + struct stk_timer_value value; +}; + struct stk_envelope { enum stk_envelope_type type; enum stk_device_identity_type src; @@ -1439,6 +1444,7 @@ struct stk_envelope { struct stk_envelope_call_control call_control; struct stk_envelope_sms_mo_control sms_mo_control; struct stk_envelope_event_download event_download; + struct stk_envelope_timer_expiration timer_expiration; }; }; |