stkutil: Add Poll Interval response builder

This commit is contained in:
Andrzej Zaborowski 2010-05-16 16:06:17 +02:00 committed by Denis Kenzior
parent fad142acf2
commit 5854e2262b
2 changed files with 11 additions and 0 deletions

View File

@ -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;
};

View File

@ -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;
};