summaryrefslogtreecommitdiffstats
path: root/gatchat/gatchat.h
diff options
context:
space:
mode:
authorDenis Kenzior <denis.kenzior@intel.com>2009-08-31 22:59:22 -0500
committerDenis Kenzior <denkenz@gmail.com>2009-08-31 23:03:35 -0500
commitc9d704955c1423c8c2ba529f30a803cd0bc78195 (patch)
tree8f574c423874bc115c7f4d61f37ad9cef6278818 /gatchat/gatchat.h
parentaeebbfa67ee429e490aa340413b8754db98a8d6f (diff)
downloadofono-c9d704955c1423c8c2ba529f30a803cd0bc78195.tar.bz2
Add PDU listing support
Diffstat (limited to 'gatchat/gatchat.h')
-rw-r--r--gatchat/gatchat.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/gatchat/gatchat.h b/gatchat/gatchat.h
index 97cf4610..b86fdb7a 100644
--- a/gatchat/gatchat.h
+++ b/gatchat/gatchat.h
@@ -95,13 +95,25 @@ guint g_at_chat_send(GAtChat *chat, const char *cmd,
* intermediate responses immediately through the GAtNotifyFunc callback.
* The final response will still be sent to GAtResultFunc callback. The
* final GAtResult will not contain any lines from the intermediate responses.
- * This is useful for listing commands such as CMGL or CPBR.
+ * This is useful for listing commands such as CPBR.
*/
guint g_at_chat_send_listing(GAtChat *chat, const char *cmd,
const char **valid_resp,
GAtNotifyFunc listing, GAtResultFunc func,
gpointer user_data, GDestroyNotify notify);
+/*!
+ * Same as g_at_chat_send_listing except every response line in valid_resp
+ * is expected to be followed by a PDU. The listing function will be called
+ * with the intermediate response and the following PDU line.
+ *
+ * This is useful for PDU listing commands like the +CMGL
+ */
+guint g_at_chat_send_pdu_listing(GAtChat *chat, const char *cmd,
+ const char **valid_resp,
+ GAtNotifyFunc listing, GAtResultFunc func,
+ gpointer user_data, GDestroyNotify notify);
+
gboolean g_at_chat_cancel(GAtChat *chat, guint id);
guint g_at_chat_register(GAtChat *chat, const char *prefix,