diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-11-09 20:03:53 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-11-16 19:58:25 +0800 |
commit | 3fa2b952c259dc6b44ce3f7e1e599e6ce9350b59 (patch) | |
tree | e9693bd5dabba703fa89b8ab4e2bc5161f32c41a /libempathy/empathy-tp-call.c | |
parent | a13ed429f988ec7ce1e473e8975fa65447cae309 (diff) | |
download | gsoc2013-empathy-3fa2b952c259dc6b44ce3f7e1e599e6ce9350b59.tar gsoc2013-empathy-3fa2b952c259dc6b44ce3f7e1e599e6ce9350b59.tar.gz gsoc2013-empathy-3fa2b952c259dc6b44ce3f7e1e599e6ce9350b59.tar.bz2 gsoc2013-empathy-3fa2b952c259dc6b44ce3f7e1e599e6ce9350b59.tar.lz gsoc2013-empathy-3fa2b952c259dc6b44ce3f7e1e599e6ce9350b59.tar.xz gsoc2013-empathy-3fa2b952c259dc6b44ce3f7e1e599e6ce9350b59.tar.zst gsoc2013-empathy-3fa2b952c259dc6b44ce3f7e1e599e6ce9350b59.zip |
add empathy_tp_call_get_connection_manager
Diffstat (limited to 'libempathy/empathy-tp-call.c')
-rw-r--r-- | libempathy/empathy-tp-call.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/libempathy/empathy-tp-call.c b/libempathy/empathy-tp-call.c index cb9e35cde..6d0941c39 100644 --- a/libempathy/empathy-tp-call.c +++ b/libempathy/empathy-tp-call.c @@ -773,3 +773,24 @@ empathy_tp_call_is_sending_video (EmpathyTpCall *call) return priv->video->direction & TP_MEDIA_STREAM_DIRECTION_SEND ? TRUE : FALSE; } + +const gchar * +empathy_tp_call_get_connection_manager (EmpathyTpCall *self) +{ + EmpathyTpCallPriv *priv = GET_PRIV (self); + TpConnection *conn; + TpAccount *account; + + if (priv->channel == NULL) + return NULL; + + conn = tp_channel_borrow_connection (priv->channel); + if (conn == NULL) + return NULL; + + account = empathy_get_account_for_connection (conn); + if (account == NULL) + return NULL; + + return tp_account_get_connection_manager (account); +} |