[Telepathy-commits] [telepathy-glib/master] ChannelManager: document valid assumptions about request_properties

Will Thompson will.thompson at collabora.co.uk
Fri Sep 12 03:11:56 PDT 2008


---
 telepathy-glib/channel-manager.h |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/telepathy-glib/channel-manager.h b/telepathy-glib/channel-manager.h
index 0ba8320..a36d5bc 100644
--- a/telepathy-glib/channel-manager.h
+++ b/telepathy-glib/channel-manager.h
@@ -132,6 +132,28 @@ void tp_channel_manager_foreach_channel_class (
  * If the implementation does not want to handle the request, it should return
  * %FALSE to allow the request to be offered to another channel manager.
  *
+ * Implementations may assume the following of @request_properties:
+ *
+ * <itemizedlist>
+ *   <listitem>
+ *      the ChannelType property is present, and is a (const gchar *)
+ *   </listitem>
+ *   <listitem>
+ *     the TargetHandleType property is a valid #TpHandleType, if present
+ *   </listitem>
+ *   <listitem>
+ *     if TargetHandleType is None, TargetHandle is 0 or omitted
+ *   </listitem>
+ *   <listitem>
+ *     if TargetHandleType is not None, TargetHandle is a valid #TpHandle of
+ *     that #TpHandleType
+ *   </listitem>
+ *   <listitem>
+ *     the TargetID property is not present (if supplied by the client, it will
+ *     be converted to a TargetHandle before being passed to this function)
+ *   </listitem>
+ * </itemizedlist>
+ *
  * Returns: %TRUE if @manager will handle this request, else %FALSE.
  */
 typedef gboolean (*TpChannelManagerRequestFunc) (
-- 
1.5.6.5




More information about the Telepathy-commits mailing list