diff options
author | Andrzej Zaborowski <andrew.zaborowski@intel.com> | 2010-05-16 16:05:21 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-05-25 16:52:52 -0500 |
commit | 22561c26f1ac29da6412a6f211185af798474ed8 (patch) | |
tree | c7f21ce3fd3b5751d2d3964a0ef6f0ece078d763 | |
parent | 7eda56a6b4dfd43555afa075bbbd708d8c049850 (diff) | |
download | ofono-22561c26f1ac29da6412a6f211185af798474ed8.tar.bz2 |
stkutil: Add Get Input 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 3edf3f50..6a2fbfb1 100644 --- a/src/stkutil.c +++ b/src/stkutil.c @@ -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; }; diff --git a/src/stkutil.h b/src/stkutil.h index 9603dd75..4e46cd53 100644 --- a/src/stkutil.h +++ b/src/stkutil.h @@ -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); |