[Telepathy-commits] [telepathy-mission-control/master] Add mcd_channel_is_requested

Alberto Mardegan alberto.mardegan at nokia.com
Mon Nov 10 04:34:24 PST 2008


This is going to be needed by channel filters.
---
 .../libmissioncontrol-server-sections.txt          |    1 +
 src/mcd-channel.c                                  |   13 +++++++++++++
 src/mcd-channel.h                                  |    1 +
 3 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/doc/reference/libmissioncontrol-server/libmissioncontrol-server-sections.txt b/doc/reference/libmissioncontrol-server/libmissioncontrol-server-sections.txt
index 64b2b18..3ab1f70 100644
--- a/doc/reference/libmissioncontrol-server/libmissioncontrol-server-sections.txt
+++ b/doc/reference/libmissioncontrol-server/libmissioncontrol-server-sections.txt
@@ -131,6 +131,7 @@ mcd_channel_get_handle_type
 mcd_channel_get_flags
 mcd_channel_get_members
 mcd_channel_get_name
+mcd_channel_is_requested
 <SUBSECTION Standard>
 MCD_CHANNEL
 MCD_IS_CHANNEL
diff --git a/src/mcd-channel.c b/src/mcd-channel.c
index a8479d9..e6789af 100644
--- a/src/mcd-channel.c
+++ b/src/mcd-channel.c
@@ -1384,3 +1384,16 @@ _mcd_channel_get_request_preferred_handler (McdChannel *channel)
     return crd->preferred_handler;
 }
 
+/**
+ * mcd_channel_is_requested:
+ * @channel: the #McdChannel.
+ *
+ * Returns: %TRUE if @channel was requested, %FALSE otherwise.
+ */
+gboolean
+mcd_channel_is_requested (McdChannel *channel)
+{
+    g_return_val_if_fail (MCD_IS_CHANNEL (channel), FALSE);
+    return channel->priv->outgoing;
+}
+
diff --git a/src/mcd-channel.h b/src/mcd-channel.h
index e13e78f..ecfa6e5 100644
--- a/src/mcd-channel.h
+++ b/src/mcd-channel.h
@@ -111,6 +111,7 @@ guint mcd_channel_get_self_handle (McdChannel *channel);
 gboolean mcd_channel_is_missed (McdChannel *channel);
 gboolean mcd_channel_leave (McdChannel *channel, const gchar *message,
 			    TpChannelGroupChangeReason reason);
+gboolean mcd_channel_is_requested (McdChannel *channel);
 
 /* not exported: */
 void _mcd_channel_set_immutable_properties (McdChannel *channel,
-- 
1.5.6.5




More information about the Telepathy-commits mailing list