summaryrefslogtreecommitdiffstats
path: root/gatchat/gatchat.c
diff options
context:
space:
mode:
Diffstat (limited to 'gatchat/gatchat.c')
-rw-r--r--gatchat/gatchat.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gatchat/gatchat.c b/gatchat/gatchat.c
index f94605fc..3f238a27 100644
--- a/gatchat/gatchat.c
+++ b/gatchat/gatchat.c
@@ -876,6 +876,14 @@ GIOChannel *g_at_chat_get_channel(GAtChat *chat)
return g_at_io_get_channel(chat->io);
}
+GAtIO *g_at_chat_get_io(GAtChat *chat)
+{
+ if (chat == NULL)
+ return NULL;
+
+ return chat->io;
+}
+
GAtChat *g_at_chat_ref(GAtChat *chat)
{
if (chat == NULL)