diff options
author | Denis Kenzior <denkenz@gmail.com> | 2009-06-15 16:37:13 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2009-06-16 16:38:19 -0500 |
commit | 69372e642ed063d15dec6662984b7699640a4e11 (patch) | |
tree | cc2a15dbec5bb6389018e731308609cd8f63125a /gatchat/gatchat.h | |
parent | f00af4527000c02dfe1aee4b6afeadef82bd4f65 (diff) | |
download | ofono-69372e642ed063d15dec6662984b7699640a4e11.tar.bz2 |
Add g_at_send_listing function
Diffstat (limited to 'gatchat/gatchat.h')
-rw-r--r-- | gatchat/gatchat.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gatchat/gatchat.h b/gatchat/gatchat.h index 58ca9114..52c6b368 100644 --- a/gatchat/gatchat.h +++ b/gatchat/gatchat.h @@ -86,6 +86,18 @@ guint g_at_chat_send(GAtChat *chat, const char *cmd, const char **valid_resp, GAtResultFunc func, gpointer user_data, GDestroyNotify notify); +/*! + * Same as the above command, except that the caller wishes to receive the + * 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. + */ +guint g_at_chat_send_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, |