gatchat: implement g_at_chat_get_io()

This commit is contained in:
Kristen Carlson Accardi 2010-05-10 11:39:42 -07:00 committed by Denis Kenzior
parent cb36130b13
commit 72c38f7adb
2 changed files with 10 additions and 0 deletions

View File

@ -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)

View File

@ -29,6 +29,7 @@ extern "C" {
#include "gatresult.h"
#include "gatsyntax.h"
#include "gatutil.h"
#include "gatio.h"
struct _GAtChat;
@ -42,6 +43,7 @@ GAtChat *g_at_chat_new(GIOChannel *channel, GAtSyntax *syntax);
GAtChat *g_at_chat_new_blocking(GIOChannel *channel, GAtSyntax *syntax);
GIOChannel *g_at_chat_get_channel(GAtChat *chat);
GAtIO *g_at_chat_get_io(GAtChat *chat);
GAtChat *g_at_chat_ref(GAtChat *chat);
void g_at_chat_unref(GAtChat *chat);