summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk>2011-04-19 13:16:23 -0300
committerAndre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk>2011-04-19 13:32:26 -0300
commitbcdca187cc2fc6d6ae4eb2d90d05beb5df93d686 (patch)
tree7c76c65224e42263488f471c343187b58d59aba3
parentbbd154b115a7c9308a311974c3106e48e7e95222 (diff)
Add rationale for TpPresenceMixinClass::get_maximum_status_message_length.
-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.
*/