summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-03-02 12:35:10 +0000
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-03-02 15:41:00 +0000
commit51feddf4ff90383e08761f380bb02cadd472f096 (patch)
treee2e9ef48203b1d5bb68b332bf28394e9095db1a8
parent20dd3263a10b75a678088a80810cdb9cef480563 (diff)
Add a tpy_call_channel_get_state() accessor
-rw-r--r--telepathy-yell/call-channel.c19
-rw-r--r--telepathy-yell/call-channel.h3
2 files changed, 22 insertions, 0 deletions
diff --git a/telepathy-yell/call-channel.c b/telepathy-yell/call-channel.c
index 6d6d48d..5add86a 100644
--- a/telepathy-yell/call-channel.c
+++ b/telepathy-yell/call-channel.c
@@ -760,6 +760,25 @@ tpy_call_channel_hangup_finish (TpyCallChannel *self,
{
}
+TpyCallState
+tpy_call_channel_get_state (TpyCallChannel *self,
+ TpyCallFlags *flags, GHashTable **details)
+{
+ g_return_val_if_fail (TPY_IS_CALL_CHANNEL (self), TPY_CALL_STATE_UNKNOWN);
+
+ if (flags != NULL)
+ *flags = self->priv->flags;
+
+ if (details != NULL)
+ {
+ if (self->priv->details != NULL)
+ g_hash_table_ref (self->priv->details);
+
+ *details = self->priv->details;
+ }
+ return self->priv->state;
+}
+
gboolean
tpy_call_channel_has_initial_video (TpyCallChannel *self)
{
diff --git a/telepathy-yell/call-channel.h b/telepathy-yell/call-channel.h
index 14397cb..73715ff 100644
--- a/telepathy-yell/call-channel.h
+++ b/telepathy-yell/call-channel.h
@@ -100,6 +100,9 @@ TpyCallContent *tpy_call_channel_add_content_finish (TpyCallChannel *self,
void tpy_call_channel_send_video (TpyCallChannel *self,
gboolean send);
+TpyCallState tpy_call_channel_get_state (TpyCallChannel *self,
+ TpyCallFlags *flags, GHashTable **details);
+
gboolean tpy_call_channel_has_initial_audio (TpyCallChannel *self);
gboolean tpy_call_channel_has_initial_video (TpyCallChannel *self);