diff options
author | Denis Kenzior <denis.kenzior@intel.com> | 2009-08-31 22:59:22 -0500 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-09-01 00:21:24 -0700 |
commit | 2a25e93a01e973f41c5955f2332fa458d895bb55 (patch) | |
tree | b68f1481884f39e385b0bb84ed79aef0fd9396d8 /gatchat/gatchat.h | |
parent | 99a3fa423e71c2ad24b764e14ebc1b562899a619 (diff) | |
download | connman-2a25e93a01e973f41c5955f2332fa458d895bb55.tar.gz connman-2a25e93a01e973f41c5955f2332fa458d895bb55.tar.bz2 connman-2a25e93a01e973f41c5955f2332fa458d895bb55.zip |
Add PDU listing support
Diffstat (limited to 'gatchat/gatchat.h')
-rw-r--r-- | gatchat/gatchat.h | 14 |
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, |