gatchat: introduce send for +CPOS
authorJarko Poutiainen <jarko.poutiainen@tieto.com>
Thu, 24 Mar 2011 13:46:29 +0000 (15:46 +0200)
committerDenis Kenzior <denkenz@gmail.com>
Mon, 28 Mar 2011 23:06:58 +0000 (18:06 -0500)
gatchat/gatchat.h

index 8cbb559..eb82daa 100644 (file)
@@ -124,6 +124,14 @@ guint g_at_chat_send_pdu_listing(GAtChat *chat, const char *cmd,
                                GAtNotifyFunc listing, GAtResultFunc func,
                                gpointer user_data, GDestroyNotify notify);
 
+/*!
+ * Same as g_at_chat_send except parser will know to expect short prompt syntax
+ * used with +CPOS.
+ */
+guint g_at_chat_send_and_expect_short_prompt(GAtChat *chat, const char *cmd,
+                               const char **valid_resp, GAtResultFunc func,
+                               gpointer user_data, GDestroyNotify notify);
+
 gboolean g_at_chat_cancel(GAtChat *chat, guint id);
 gboolean g_at_chat_cancel_all(GAtChat *chat);