diff options
Diffstat (limited to 'gatchat/gatchat.c')
-rw-r--r-- | gatchat/gatchat.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gatchat/gatchat.c b/gatchat/gatchat.c index fa4f262e..c4de1471 100644 --- a/gatchat/gatchat.c +++ b/gatchat/gatchat.c @@ -1003,6 +1003,18 @@ gboolean g_at_chat_shutdown(GAtChat *chat) return TRUE; } +gboolean g_at_chat_set_syntax(GAtChat *chat, GAtSyntax *syntax) +{ + if (chat == NULL) + return FALSE; + + g_at_syntax_unref(chat->syntax); + + chat->syntax = g_at_syntax_ref(syntax); + + return TRUE; +} + gboolean g_at_chat_set_disconnect_function(GAtChat *chat, GAtDisconnectFunc disconnect, gpointer user_data) { |