stkutil: Add Poll Interval response builder support.
PATCH 14/27 stkutil: Add Poll Interval response builder support.
--- src/stkutil.c | 6 ++++++ src/stkutil.h | 5 +++++ 2 files changed, 11 insertions(+), 0 deletions(-)
src/stkutil.c +6 -0
@@ -3201,6 +3201,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 ; };
src/stkutil.h +5 -0
@@ -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; };
Signature · 1 line
1.7.1.86.g0e460.dirty