Re: [PATCH v2 3/4] stk: Ask for immediate digit response if specified by command qualifier

2012-08-30 Thread Denis Kenzior

Hi Philippe,

On 08/28/2012 08:21 AM, Philippe Nunes wrote:

---
  src/stk.c |9 +++--
  1 file changed, 7 insertions(+), 2 deletions(-)



Patch has been applied, thanks.

Regards,
-Denis

___
ofono mailing list
ofono@ofono.org
http://lists.ofono.org/listinfo/ofono


[PATCH v2 3/4] stk: Ask for immediate digit response if specified by command qualifier

2012-08-28 Thread Philippe Nunes
---
 src/stk.c |9 +++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/stk.c b/src/stk.c
index 7a7bd75..38f2e18 100644
--- a/src/stk.c
+++ b/src/stk.c
@@ -1519,9 +1519,9 @@ static gboolean handle_command_get_inkey(const struct 
stk_command *cmd,
gboolean alphabet = (qualifier  (1  0)) != 0;
gboolean ucs2 = (qualifier  (1  1)) != 0;
gboolean yesno = (qualifier  (1  2)) != 0;
+   gboolean immediate = (qualifier  (1  3)) != 0;
/*
-* Note: immediate response and help parameter values are not
-* provided by current api.
+* Note: help parameter value is not provided by current api.
 */
int err;
 
@@ -1545,6 +1545,11 @@ static gboolean handle_command_get_inkey(const struct 
stk_command *cmd,
gi-icon_id, ucs2,
request_key_cb, stk, NULL,
timeout);
+   else if (immediate)
+   err = stk_agent_request_quick_digit(stk-current_agent,
+   text, gi-icon_id,
+   request_key_cb, stk,
+   NULL, timeout);
else
err = stk_agent_request_digit(stk-current_agent, text,
gi-icon_id, request_key_cb,
-- 
1.7.9.5

___
ofono mailing list
ofono@ofono.org
http://lists.ofono.org/listinfo/ofono