From 5854e2262b5aa94073bb534c3bc32e04d6f07f80 Mon Sep 17 00:00:00 2001 From: Andrzej Zaborowski Date: Sun, 16 May 2010 16:06:17 +0200 Subject: [PATCH] stkutil: Add Poll Interval response builder --- src/stkutil.c | 6 ++++++ src/stkutil.h | 5 +++++ 2 files changed, 11 insertions(+) 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; };