summaryrefslogtreecommitdiff
path: root/telepathy-glib/presence-mixin.c
diff options
context:
space:
mode:
authorAndre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk>2011-04-19 13:16:23 -0300
committerWill Thompson <will.thompson@collabora.co.uk>2011-04-20 17:41:00 +0100
commit58faf040432d6464bad8e90493b8c4d21eaa2822 (patch)
tree5ba5cf3d796bad5e3239f37a5507ab1f84f20e1e /telepathy-glib/presence-mixin.c
parent56109498391f21aa7b5841ec0291c872ff5db1f0 (diff)
downloadtelepathy-glib-58faf040432d6464bad8e90493b8c4d21eaa2822.tar.gz
Add rationale for TpPresenceMixinClass::get_maximum_status_message_length.
Diffstat (limited to 'telepathy-glib/presence-mixin.c')
-rw-r--r--telepathy-glib/presence-mixin.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/telepathy-glib/presence-mixin.c b/telepathy-glib/presence-mixin.c
index 6039e9267..b9127d4e8 100644
--- a/telepathy-glib/presence-mixin.c
+++ b/telepathy-glib/presence-mixin.c
@@ -233,10 +233,19 @@
* tp_presence_mixin_class_init()
* @statuses: The presence statuses array that was passed to
* tp_presence_mixin_class_init()
+ * @get_maximum_status_message_length: The callback used to discover the
+ * the limit for status messages lenght, if any.
*
* Structure to be included in the class structure of objects that
* use this mixin. Initialize it with tp_presence_mixin_class_init().
*
+ * If the protocol has a limit for status message length, one should implement
+ * the get_maximum_status_message_length callback returning the maximum length
+ * in characters for any individual status message that is supported,
+ * or 0 if there is no limit. If this callback is not implemented, it is
+ * considered that there is no limit.
+ * The callback should be set after calling tp_presence_mixin_class_init().
+ *
* All fields should be considered read-only.
*/