diff options
author | Denis Kenzior <denkenz@gmail.com> | 2009-10-09 14:57:14 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2009-10-15 16:15:16 -0500 |
commit | 9aa218226122daba8e3d9bddbca11ea92a764b93 (patch) | |
tree | 4e744a8c42d21ebe92b56c20a3c6187637d091b2 /gatchat | |
parent | 556186eb35a92de763e31b8e5012c3c74457aa5e (diff) | |
download | ofono-9aa218226122daba8e3d9bddbca11ea92a764b93.tar.bz2 |
Add ability to retrieve the atchat IOChannel
Diffstat (limited to 'gatchat')
-rw-r--r-- | gatchat/gatchat.c | 8 | ||||
-rw-r--r-- | gatchat/gatchat.h | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gatchat/gatchat.c b/gatchat/gatchat.c index c4de1471..e5b6ed7a 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 76116f32..fe5b97bc 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); |