Open Source Telephony
 help / color / mirror / Atom feed
From: Philippe Nunes <philippe.nunes@linux.intel.com>
To: ofono@ofono.org
Subject: [PATCH 1/4] stk: check if immediate digit response is requested
Date: Fri, 24 Aug 2012 16:28:22 +0200	[thread overview]
Message-ID: <1345818505-17175-2-git-send-email-philippe.nunes@linux.intel.com> (raw)
In-Reply-To: <1345818505-17175-1-git-send-email-philippe.nunes@linux.intel.com>

[-- Attachment #1: Type: text/plain, Size: 956 bytes --]

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

diff --git a/src/stk.c b/src/stk.c
index 7a7bd75..3883d11 100644
--- a/src/stk.c
+++ b/src/stk.c
@@ -1519,6 +1519,7 @@ 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.
@@ -1547,8 +1548,9 @@ static gboolean handle_command_get_inkey(const struct stk_command *cmd,
 						timeout);
 	else
 		err = stk_agent_request_digit(stk->current_agent, text,
-						&gi->icon_id, request_key_cb,
-						stk, NULL, timeout);
+						&gi->icon_id, immediate,
+						request_key_cb, stk, NULL,
+						timeout);
 
 	g_free(text);
 
-- 
1.7.9.5


  reply	other threads:[~2012-08-24 14:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-24 14:28 [PATCH 0/4] Immediate digit response Philippe Nunes
2012-08-24 14:28 ` Philippe Nunes [this message]
2012-08-24 14:28 ` [PATCH 2/4] stkagent: Add argument to notify when immediate digit response is required Philippe Nunes
2012-08-24 14:28 ` [PATCH 3/4] doc: Update STK API regarding the new argument immediate_response Philippe Nunes
2012-08-24 15:48   ` Denis Kenzior
2012-08-24 14:28 ` [PATCH 4/4] test: Print the immediate_response argument for RequestDigit Philippe Nunes
2012-08-24 15:52 ` [PATCH 0/4] Immediate digit response Denis Kenzior

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1345818505-17175-2-git-send-email-philippe.nunes@linux.intel.com \
    --to=philippe.nunes@linux.intel.com \
    --cc=ofono@ofono.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox