diff options
author | Andrzej Zaborowski <andrew.zaborowski@intel.com> | 2010-05-16 16:06:17 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-05-25 16:52:53 -0500 |
commit | 5854e2262b5aa94073bb534c3bc32e04d6f07f80 (patch) | |
tree | 719984111281987fe8dbfabe7e7bbadc182a08e0 | |
parent | fad142acf231811dd367f5a0944842455847e554 (diff) | |
download | ofono-5854e2262b5aa94073bb534c3bc32e04d6f07f80.tar.bz2 |
stkutil: Add Poll Interval response builder
-rw-r--r-- | src/stkutil.c | 6 | ||||
-rw-r--r-- | src/stkutil.h | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/stkutil.c b/src/stkutil.c index a0bcf676..8314e5ff 100644 --- a/src/stkutil.c +++ b/src/stkutil.c @@ -3211,6 +3211,12 @@ unsigned int stk_pdu_from_response(const struct stk_response *response, case STK_COMMAND_TYPE_SEND_SMS: case STK_COMMAND_TYPE_PLAY_TONE: break; + case STK_COMMAND_TYPE_POLL_INTERVAL: + ok = build_dataobj(&builder, + build_dataobj_duration, DATAOBJ_FLAG_CR, + &response->poll_interval.max_interval, + NULL); + break; default: return 0; }; diff --git a/src/stkutil.h b/src/stkutil.h index 342f40b9..57fde789 100644 --- a/src/stkutil.h +++ b/src/stkutil.h @@ -1014,6 +1014,10 @@ struct stk_response_get_input { struct stk_answer_text text; }; +struct stk_response_poll_interval { + struct stk_duration max_interval; +}; + struct stk_response { unsigned char number; unsigned char type; @@ -1027,6 +1031,7 @@ struct stk_response { struct stk_response_get_inkey get_inkey; struct stk_response_get_input get_input; struct stk_response_generic play_tone; + struct stk_response_poll_interval poll_interval; struct stk_response_generic send_sms; }; |