diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-06-15 17:47:06 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2009-06-15 17:47:06 +0800 |
commit | 909f3e3d892afc61e42143bf9182d6dec9f3ccb9 (patch) | |
tree | 0653659c3a13b832168fc2256b2756634617777d /libempathy/empathy-tp-call.c | |
parent | 3624ff9a9fc90161487431fd536cdc3fffb0bb57 (diff) | |
parent | e5989d0face9edde213e0530ba6c886d61a1276f (diff) | |
download | gsoc2013-empathy-909f3e3d892afc61e42143bf9182d6dec9f3ccb9.tar gsoc2013-empathy-909f3e3d892afc61e42143bf9182d6dec9f3ccb9.tar.gz gsoc2013-empathy-909f3e3d892afc61e42143bf9182d6dec9f3ccb9.tar.bz2 gsoc2013-empathy-909f3e3d892afc61e42143bf9182d6dec9f3ccb9.tar.lz gsoc2013-empathy-909f3e3d892afc61e42143bf9182d6dec9f3ccb9.tar.xz gsoc2013-empathy-909f3e3d892afc61e42143bf9182d6dec9f3ccb9.tar.zst gsoc2013-empathy-909f3e3d892afc61e42143bf9182d6dec9f3ccb9.zip |
Merge commit 'jtellier/call-window-video-preview'
Diffstat (limited to 'libempathy/empathy-tp-call.c')
-rw-r--r-- | libempathy/empathy-tp-call.c | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/libempathy/empathy-tp-call.c b/libempathy/empathy-tp-call.c index 2971e0ffc..a672d8a84 100644 --- a/libempathy/empathy-tp-call.c +++ b/libempathy/empathy-tp-call.c @@ -672,3 +672,38 @@ empathy_tp_call_has_dtmf (EmpathyTpCall *call) TP_IFACE_QUARK_CHANNEL_INTERFACE_DTMF); } +/** + * empathy_tp_call_is_receiving_video: + * @call: the call + * + * Indicates if the call is receiving video or not. + * + * Returns: %TRUE if the call is currently receiving video, %FALSE otherwise. + */ +gboolean +empathy_tp_call_is_receiving_video (EmpathyTpCall *call) +{ + EmpathyTpCallPriv *priv = GET_PRIV (call); + + g_return_val_if_fail (EMPATHY_IS_TP_CALL (call), FALSE); + + return priv->video->direction & TP_MEDIA_STREAM_DIRECTION_RECEIVE; +} + +/** + * empathy_tp_call_is_sending_video: + * @call: the call + * + * Indicates if the call is sending video or not. + * + * Returns: %TRUE if the call is currently sending video, %FALSE otherwise. + */ +gboolean +empathy_tp_call_is_sending_video (EmpathyTpCall *call) +{ + EmpathyTpCallPriv *priv = GET_PRIV (call); + + g_return_val_if_fail (EMPATHY_IS_TP_CALL (call), FALSE); + + return priv->video->direction & TP_MEDIA_STREAM_DIRECTION_SEND; +} |