summaryrefslogtreecommitdiff
path: root/telepathy-glib/call-channel.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2011-11-14 14:50:12 +0100
committerXavier Claessens <xavier.claessens@collabora.co.uk>2012-01-10 09:52:44 +0100
commit945e6690b216c58af00bf3844a712a4155373aff (patch)
treed3ffc8e780b6965637dc3545cfcc9dd842a9ee0f /telepathy-glib/call-channel.c
parent09c4935a9ad87b764b6b70cb96183535ca9437e3 (diff)
downloadtelepathy-glib-945e6690b216c58af00bf3844a712a4155373aff.tar.gz
Add tp_call_channel_has_dtmf()
Diffstat (limited to 'telepathy-glib/call-channel.c')
-rw-r--r--telepathy-glib/call-channel.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/telepathy-glib/call-channel.c b/telepathy-glib/call-channel.c
index c3bcd4b42..2fbcde4e5 100644
--- a/telepathy-glib/call-channel.c
+++ b/telepathy-glib/call-channel.c
@@ -1183,6 +1183,25 @@ tp_call_channel_get_members (TpCallChannel *self)
return self->priv->members;
}
+/**
+ * tp_call_channel_has_dtmf:
+ * @self: a #TpCallChannel
+ *
+ * Whether or not %self has the %TP_IFACE_CHANNEL_INTERFACE_DTMF
+ * interfaces
+ *
+ * Returns: whether or not @self supports DTMF
+ * Since: 0.UNRELEASED
+ */
+gboolean
+tp_call_channel_has_dtmf (TpCallChannel *self)
+{
+ g_return_val_if_fail (TP_IS_CALL_CHANNEL (self), FALSE);
+
+ return tp_proxy_has_interface_by_id (self,
+ TP_IFACE_QUARK_CHANNEL_INTERFACE_DTMF);
+}
+
static void
generic_async_cb (TpChannel *channel,
const GError *error,