From: Denis Kenzior Date: Fri, 9 Oct 2009 19:57:14 +0000 (-0500) Subject: Add ability to retrieve the atchat IOChannel X-Git-Tag: 0.8~33 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9aa218226122daba8e3d9bddbca11ea92a764b93;p=platform%2Fupstream%2Fofono.git Add ability to retrieve the atchat IOChannel --- diff --git a/gatchat/gatchat.c b/gatchat/gatchat.c index c4de147..e5b6ed7 100644 --- a/gatchat/gatchat.c +++ b/gatchat/gatchat.c @@ -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) diff --git a/gatchat/gatchat.h b/gatchat/gatchat.h index 76116f3..fe5b97b 100644 --- a/gatchat/gatchat.h +++ b/gatchat/gatchat.h @@ -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);