Skip to contentSkip to conversation

stkutil: Add Get Input response builder.

PATCH In review Andrzej Zaborowski 1 participant 1 message May 16, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 8/27 stkutil: Add Get Input response builder.

---
 src/stkutil.c |    6 ++++++
 src/stkutil.h |    5 +++++
 2 files changed, 11 insertions(+), 0 deletions(-)
src/stkutil.c +6 -0
index 29a1760..c3c30ab 100644
@@ -3192,6 +3192,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;
 	};
src/stkutil.h +5 -0
index 9603dd7..4e46cd5 100644
@@ -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);
Signature · 1 line
1.7.1.86.g0e460.dirty