diff options
author | Denis Kenzior <denkenz@gmail.com> | 2009-08-04 18:53:25 -0500 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-08-06 17:48:48 -0700 |
commit | 82ccfae22a5d1638870d283ecf953d9b2a8a184f (patch) | |
tree | af398913ad121db85a0179d8c1081cc4eb45b10f /gatchat/gatchat.h | |
parent | acfb52bb7e18a227a5c141af9e112ad8f4255a0b (diff) | |
download | connman-82ccfae22a5d1638870d283ecf953d9b2a8a184f.tar.gz connman-82ccfae22a5d1638870d283ecf953d9b2a8a184f.tar.bz2 connman-82ccfae22a5d1638870d283ecf953d9b2a8a184f.zip |
Refactor GAtChat to accept user-provided parsers
Intended for really broken modems. A default 27.007 compliant
parser is provided.
Diffstat (limited to 'gatchat/gatchat.h')
-rw-r--r-- | gatchat/gatchat.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gatchat/gatchat.h b/gatchat/gatchat.h index 969f6f46..d0a59b83 100644 --- a/gatchat/gatchat.h +++ b/gatchat/gatchat.h @@ -27,6 +27,7 @@ extern "C" { #endif #include "gatresult.h" +#include "gatsyntax.h" struct _GAtChat; @@ -44,11 +45,8 @@ enum _GAtChatFlags { typedef enum _GAtChatFlags GAtChatFlags; -GAtChat *g_at_chat_new(GIOChannel *channel, int flags); -GAtChat *g_at_chat_new_from_tty(const char *device, int flags); - -int g_at_chat_get_flags(GAtChat *chat); -void g_at_chat_set_flags(GAtChat *chat, int flags); +GAtChat *g_at_chat_new(GIOChannel *channel, GAtSyntax *syntax); +GAtChat *g_at_chat_new_from_tty(const char *device, GAtSyntax *syntax); GAtChat *g_at_chat_ref(GAtChat *chat); void g_at_chat_unref(GAtChat *chat); |