summaryrefslogtreecommitdiffstats
path: root/gatchat/gatchat.c
diff options
context:
space:
mode:
Diffstat (limited to 'gatchat/gatchat.c')
-rw-r--r--gatchat/gatchat.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/gatchat/gatchat.c b/gatchat/gatchat.c
index dfd60d5f..3c21e068 100644
--- a/gatchat/gatchat.c
+++ b/gatchat/gatchat.c
@@ -958,6 +958,22 @@ error:
return NULL;
}
+int g_at_chat_get_flags(GAtChat *chat)
+{
+ if (chat == NULL)
+ return 0;
+
+ return chat->flags;
+}
+
+void g_at_chat_set_flags(GAtChat *chat, int flags)
+{
+ if (chat == NULL)
+ return;
+
+ chat->flags = flags;
+}
+
static int open_device(const char *device)
{
struct termios ti;