diff options
author | Denis Kenzior <denkenz@gmail.com> | 2009-08-04 18:53:25 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2009-08-06 16:38:39 -0500 |
commit | 83820c88b2353c5df5badd7e509d43fc7ea4ae28 (patch) | |
tree | dda9b906697ff314a4a8ad2389c1f766a03e2785 /gatchat/gatchat.h | |
parent | 239ab461f72e50d830a984a790b7e5a2d1495c6a (diff) | |
download | ofono-83820c88b2353c5df5badd7e509d43fc7ea4ae28.tar.bz2 |
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); |