[PATCH 4/4] ifxmodem: add support for user_confirmation in stk

2011-07-15 Thread Jeevaka Badrappan
---
 drivers/ifxmodem/stk.c |   11 +++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/drivers/ifxmodem/stk.c b/drivers/ifxmodem/stk.c
index f08cf47..d2082c4 100644
--- a/drivers/ifxmodem/stk.c
+++ b/drivers/ifxmodem/stk.c
@@ -173,6 +173,16 @@ error:
CALLBACK_WITH_FAILURE(cb, data);
 }
 
+static void ifx_stk_user_confirmation(struct ofono_stk *stk, gboolean confirm)
+{
+   struct stk_data *sd = ofono_stk_get_data(stk);
+   char buf[20];
+
+   snprintf(buf, sizeof(buf), AT+SATD=%i, confirm ? 1 : 0);
+
+   g_at_chat_send(sd-chat, buf, none_prefix, NULL, NULL, NULL);
+}
+
 static void sati_notify(GAtResult *result, gpointer user_data)
 {
struct ofono_stk *stk = user_data;
@@ -303,6 +313,7 @@ static struct ofono_stk_driver driver = {
.remove = ifx_stk_remove,
.envelope   = ifx_stk_envelope,
.terminal_response  = ifx_stk_terminal_response,
+   .user_confirmation  = ifx_stk_user_confirmation,
 };
 
 void ifx_stk_init(void)
-- 
1.7.4.1

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


Re: [PATCH 4/4] ifxmodem: add support for user_confirmation in stk

2011-07-15 Thread Denis Kenzior
Hi Jeevaka,

On 07/15/2011 07:42 AM, Jeevaka Badrappan wrote:
 ---
  drivers/ifxmodem/stk.c |   11 +++
  1 files changed, 11 insertions(+), 0 deletions(-)
 

Patch has been applied, thanks.

Regards,
-Denis
___
ofono mailing list
ofono@ofono.org
http://lists.ofono.org/listinfo/ofono


[PATCH 4/4] ifxmodem: add support for user_confirmation in stk

2011-07-06 Thread Jeevaka Badrappan
---
 drivers/ifxmodem/stk.c |   11 +++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/drivers/ifxmodem/stk.c b/drivers/ifxmodem/stk.c
index f08cf47..d2082c4 100644
--- a/drivers/ifxmodem/stk.c
+++ b/drivers/ifxmodem/stk.c
@@ -173,6 +173,16 @@ error:
CALLBACK_WITH_FAILURE(cb, data);
 }
 
+static void ifx_stk_user_confirmation(struct ofono_stk *stk, gboolean confirm)
+{
+   struct stk_data *sd = ofono_stk_get_data(stk);
+   char buf[20];
+
+   snprintf(buf, sizeof(buf), AT+SATD=%i, confirm ? 1 : 0);
+
+   g_at_chat_send(sd-chat, buf, none_prefix, NULL, NULL, NULL);
+}
+
 static void sati_notify(GAtResult *result, gpointer user_data)
 {
struct ofono_stk *stk = user_data;
@@ -303,6 +313,7 @@ static struct ofono_stk_driver driver = {
.remove = ifx_stk_remove,
.envelope   = ifx_stk_envelope,
.terminal_response  = ifx_stk_terminal_response,
+   .user_confirmation  = ifx_stk_user_confirmation,
 };
 
 void ifx_stk_init(void)
-- 
1.7.4.1

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