summaryrefslogtreecommitdiffstats
path: root/gatchat/gatchat.h
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2011-07-24 16:15:42 -0500
committerMarcel Holtmann <marcel@holtmann.org>2011-07-25 03:44:56 +0200
commit0471e3ec8de0e2e1dd77d003fe8d184128b6a109 (patch)
tree0c4412e23996bb647560931257ba9c4991dc3bf4 /gatchat/gatchat.h
parenta1baf7aa824c3e44f0880c110c1cdf7637368afe (diff)
downloadofono-0471e3ec8de0e2e1dd77d003fe8d184128b6a109.tar.bz2
gatchat: Add terminator blacklisting
Diffstat (limited to 'gatchat/gatchat.h')
-rw-r--r--gatchat/gatchat.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/gatchat/gatchat.h b/gatchat/gatchat.h
index eb82daab..760577af 100644
--- a/gatchat/gatchat.h
+++ b/gatchat/gatchat.h
@@ -39,6 +39,21 @@ typedef void (*GAtResultFunc)(gboolean success, GAtResult *result,
gpointer user_data);
typedef void (*GAtNotifyFunc)(GAtResult *result, gpointer user_data);
+enum _GAtChatTerminator {
+ G_AT_CHAT_TERMINATOR_OK,
+ G_AT_CHAT_TERMINATOR_ERROR,
+ G_AT_CHAT_TERMINATOR_NO_DIALTONE,
+ G_AT_CHAT_TERMINATOR_BUSY,
+ G_AT_CHAT_TERMINATOR_NO_CARRIER,
+ G_AT_CHAT_TERMINATOR_CONNECT,
+ G_AT_CHAT_TERMINATOR_NO_ANSWER,
+ G_AT_CHAT_TERMINATOR_CMS_ERROR,
+ G_AT_CHAT_TERMINATOR_CME_ERROR,
+ G_AT_CHAT_TERMINATOR_EXT_ERROR,
+};
+
+typedef enum _GAtChatTerminator GAtChatTerminator;
+
GAtChat *g_at_chat_new(GIOChannel *channel, GAtSyntax *syntax);
GAtChat *g_at_chat_new_blocking(GIOChannel *channel, GAtSyntax *syntax);
@@ -147,6 +162,8 @@ gboolean g_at_chat_set_wakeup_command(GAtChat *chat, const char *cmd,
void g_at_chat_add_terminator(GAtChat *chat, char *terminator,
int len, gboolean success);
+void g_at_chat_blacklist_terminator(GAtChat *chat,
+ GAtChatTerminator terminator);
#ifdef __cplusplus
}