Open Source Telephony
 help / color / mirror / Atom feed
From: Philippe Nunes <philippe.nunes@linux.intel.com>
To: ofono@ofono.org
Subject: [PATCH 2/4] stkagent: Add argument to notify when immediate digit response is required
Date: Fri, 24 Aug 2012 16:28:23 +0200	[thread overview]
Message-ID: <1345818505-17175-3-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: 1732 bytes --]

---
 src/stkagent.c |    6 ++++--
 src/stkagent.h |    5 +++--
 2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/stkagent.c b/src/stkagent.c
index 7c3f697..ed5d28a 100644
--- a/src/stkagent.c
+++ b/src/stkagent.c
@@ -554,8 +554,9 @@ static void get_digit_cb(DBusPendingCall *call, void *data)
 
 int stk_agent_request_digit(struct stk_agent *agent, const char *text,
 				const struct stk_icon_id *icon,
-				stk_agent_string_cb cb, void *user_data,
-				ofono_destroy_func destroy, int timeout)
+				ofono_bool_t immediate, stk_agent_string_cb cb,
+				void *user_data, ofono_destroy_func destroy,
+				int timeout)
 {
 	DBusConnection *conn = ofono_dbus_get_connection();
 
@@ -568,6 +569,7 @@ int stk_agent_request_digit(struct stk_agent *agent, const char *text,
 	dbus_message_append_args(agent->msg,
 					DBUS_TYPE_STRING, &text,
 					DBUS_TYPE_BYTE, &icon->id,
+					DBUS_TYPE_BOOLEAN, &immediate,
 					DBUS_TYPE_INVALID);
 
 	if (dbus_connection_send_with_reply(conn, agent->msg, &agent->call,
diff --git a/src/stkagent.h b/src/stkagent.h
index 6e267fc..e797c1e 100644
--- a/src/stkagent.h
+++ b/src/stkagent.h
@@ -99,8 +99,9 @@ int stk_agent_request_confirmation(struct stk_agent *agent, const char *text,
 
 int stk_agent_request_digit(struct stk_agent *agent, const char *text,
 				const struct stk_icon_id *icon,
-				stk_agent_string_cb cb, void *user_data,
-				ofono_destroy_func destroy, int timeout);
+				ofono_bool_t immediate, stk_agent_string_cb cb,
+				void *user_data, ofono_destroy_func destroy,
+				int timeout);
 
 int stk_agent_request_key(struct stk_agent *agent, const char *text,
 				const struct stk_icon_id *icon,
-- 
1.7.9.5


  parent 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 ` [PATCH 1/4] stk: check if immediate digit response is requested Philippe Nunes
2012-08-24 14:28 ` Philippe Nunes [this message]
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-3-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