mirror of git://git.sysmocom.de/ofono
stkutil: Add Get Input response builder
This commit is contained in:
parent
7eda56a6b4
commit
22561c26f1
|
@ -3202,6 +3202,12 @@ unsigned int stk_pdu_from_response(const struct stk_response *response,
|
|||
&response->get_inkey.duration,
|
||||
NULL);
|
||||
break;
|
||||
case STK_COMMAND_TYPE_GET_INPUT:
|
||||
ok = build_dataobj(&builder,
|
||||
build_dataobj_text, DATAOBJ_FLAG_CR,
|
||||
&response->get_input.text,
|
||||
NULL);
|
||||
break;
|
||||
default:
|
||||
return 0;
|
||||
};
|
||||
|
|
|
@ -1010,6 +1010,10 @@ struct stk_response_get_inkey {
|
|||
struct stk_duration duration;
|
||||
};
|
||||
|
||||
struct stk_response_get_input {
|
||||
struct stk_answer_text text;
|
||||
};
|
||||
|
||||
struct stk_response {
|
||||
unsigned char number;
|
||||
unsigned char type;
|
||||
|
@ -1021,6 +1025,7 @@ struct stk_response {
|
|||
union {
|
||||
struct stk_response_generic display_text;
|
||||
struct stk_response_get_inkey get_inkey;
|
||||
struct stk_response_get_input get_input;
|
||||
};
|
||||
|
||||
void (*destructor)(struct stk_response *response);
|
||||
|
|
Loading…
Reference in New Issue