---
 gatchat/gatchat.c |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/gatchat/gatchat.c b/gatchat/gatchat.c
index 3fd564d..64f131d 100644
--- a/gatchat/gatchat.c
+++ b/gatchat/gatchat.c
@@ -1468,6 +1468,19 @@ guint g_at_chat_send_pdu_listing(GAtChat *chat, const 
char *cmd,
                                        listing, func, user_data, notify);
 }
 
+guint g_at_chat_send_and_expect_short_prompt(GAtChat *chat, const char *cmd,
+                       const char **prefix_list, GAtResultFunc func,
+                       gpointer user_data, GDestroyNotify notify)
+{
+       if(chat != NULL)
+               chat->parent->syntax->set_hint(chat->parent->syntax,
+                                       G_AT_SYNTAX_EXPECT_SHORT_PROMPT);
+
+       return at_chat_send_common(chat->parent, chat->group,
+                                       cmd, prefix_list, FALSE, NULL,
+                                       func, user_data, notify);
+}
+
 gboolean g_at_chat_cancel(GAtChat *chat, guint id)
 {
        /* We use id 0 for wakeup commands */
-- 
1.7.0.4

_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono

Reply via email to