Add ability to retrieve the atchat IOChannel

This commit is contained in:
Denis Kenzior 2009-10-09 14:57:14 -05:00
parent 556186eb35
commit 9aa2182261
2 changed files with 10 additions and 0 deletions

View File

@ -959,6 +959,14 @@ error:
return NULL;
}
GIOChannel *g_at_chat_get_channel(GAtChat *chat)
{
if (chat == NULL)
return NULL;
return chat->channel;
}
GAtChat *g_at_chat_ref(GAtChat *chat)
{
if (chat == NULL)

View File

@ -41,6 +41,8 @@ typedef void (*GAtDebugFunc)(const char *str, gpointer user_data);
GAtChat *g_at_chat_new(GIOChannel *channel, GAtSyntax *syntax);
GIOChannel *g_at_chat_get_channel(GAtChat *chat);
GAtChat *g_at_chat_ref(GAtChat *chat);
void g_at_chat_unref(GAtChat *chat);