aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-12-15 01:32:24 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-12-16 01:27:35 +0800
commit33999734f01e9f8d3a85532904bb04dcb3271f0b (patch)
tree5ccc9d5b7990bc974fdb1545c998654f8f16bba0 /libempathy
parent594e7fee5d0fc22e385da905e1db93829553f0ed (diff)
downloadgsoc2013-empathy-33999734f01e9f8d3a85532904bb04dcb3271f0b.tar
gsoc2013-empathy-33999734f01e9f8d3a85532904bb04dcb3271f0b.tar.gz
gsoc2013-empathy-33999734f01e9f8d3a85532904bb04dcb3271f0b.tar.bz2
gsoc2013-empathy-33999734f01e9f8d3a85532904bb04dcb3271f0b.tar.lz
gsoc2013-empathy-33999734f01e9f8d3a85532904bb04dcb3271f0b.tar.xz
gsoc2013-empathy-33999734f01e9f8d3a85532904bb04dcb3271f0b.tar.zst
gsoc2013-empathy-33999734f01e9f8d3a85532904bb04dcb3271f0b.zip
add empathy_tp_call_has_initial_video
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-tp-call.c22
-rw-r--r--libempathy/empathy-tp-call.h2
2 files changed, 24 insertions, 0 deletions
diff --git a/libempathy/empathy-tp-call.c b/libempathy/empathy-tp-call.c
index 6d0941c39..9d52075ff 100644
--- a/libempathy/empathy-tp-call.c
+++ b/libempathy/empathy-tp-call.c
@@ -794,3 +794,25 @@ empathy_tp_call_get_connection_manager (EmpathyTpCall *self)
return tp_account_get_connection_manager (account);
}
+
+gboolean
+empathy_tp_call_has_initial_video (EmpathyTpCall *self)
+{
+ EmpathyTpCallPriv *priv = GET_PRIV (self);
+ GHashTable *props;
+ gboolean initial_video;
+ gboolean valid;
+
+ if (priv->channel == NULL)
+ return FALSE;
+
+ g_object_get (priv->channel, "channel-properties", &props, NULL);
+
+ initial_video = tp_asv_get_boolean (props,
+ TP_IFACE_CHANNEL_TYPE_STREAMED_MEDIA ".InitialVideo", &valid);
+ if (!valid)
+ initial_video = FALSE;
+
+ g_hash_table_unref (props);
+ return initial_video;
+}
diff --git a/libempathy/empathy-tp-call.h b/libempathy/empathy-tp-call.h
index 476b10a0d..c5607d8d7 100644
--- a/libempathy/empathy-tp-call.h
+++ b/libempathy/empathy-tp-call.h
@@ -90,6 +90,8 @@ gboolean empathy_tp_call_is_sending_video (EmpathyTpCall *call);
const gchar * empathy_tp_call_get_connection_manager (EmpathyTpCall *self);
+gboolean empathy_tp_call_has_initial_video (EmpathyTpCall *self);
+
G_END_DECLS
#endif /* __EMPATHY_TP_CALL_H__ */