diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2012-02-29 16:53:05 -0500 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2012-03-14 18:08:50 -0400 |
commit | 73bd281569d45b4acce20f952dba3d4e79441ec2 (patch) | |
tree | 6daa9b05a422922f966f1c5e83e72da10354aabb /telepathy-glib/base-media-call-channel.c | |
parent | c40b66f5847eb37700a992beb091ae383badbec9 (diff) | |
download | telepathy-glib-73bd281569d45b4acce20f952dba3d4e79441ec2.tar.gz |
BaseMediaCallChannel: Add method to get the hold state
Diffstat (limited to 'telepathy-glib/base-media-call-channel.c')
-rw-r--r-- | telepathy-glib/base-media-call-channel.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/telepathy-glib/base-media-call-channel.c b/telepathy-glib/base-media-call-channel.c index f6155ad9d..68154bb42 100644 --- a/telepathy-glib/base-media-call-channel.c +++ b/telepathy-glib/base-media-call-channel.c @@ -573,3 +573,28 @@ _tp_base_media_call_channel_streams_receiving_state_changed ( else hold_change_failed (self); } + +/** + * tp_base_media_call_channel_get_local_hold_state: + * @channel: a #TpBaseMediaCallChannel + * @reason: pointer to a location where to store the @reason, or %NULL + * + * <!-- --> + * + * Returns: The current hold state + * + * Since: 0.17.UNRELEASED + */ + +TpLocalHoldState +tp_base_media_call_channel_get_local_hold_state ( + TpBaseMediaCallChannel *channel, TpLocalHoldStateReason *reason) +{ + g_return_val_if_fail (TP_IS_BASE_MEDIA_CALL_CHANNEL (channel), + TP_LOCAL_HOLD_STATE_UNHELD); + + if (reason) + *reason = channel->priv->hold_state_reason; + + return channel->priv->hold_state; +} |