libpurple/connection.h

branch
soc.2013.gobjectification
changeset 34894
df5ed3731148
parent 34885
f4b25d67224d
parent 34312
4461d5c1e61c
child 34901
a19e5619aee3
child 36583
0582190c9382
--- a/libpurple/connection.h	Fri Aug 23 15:07:48 2013 +0530
+++ b/libpurple/connection.h	Tue Aug 27 04:18:00 2013 +0530
@@ -464,6 +464,18 @@
  */
 void purple_connection_update_last_received(PurpleConnection *gc);
 
+/**
+ * Gets the maximum message size for the protocol. It may depend on
+ * connection-specific variables (like protocol version).
+ *
+ * @see PurplePluginProtocolInfo#get_max_message_size
+ *
+ * @param gc The connection to query.
+ * @return   Maximum message size, or 0 if unspecified or infinite.
+ */
+gsize
+purple_connection_get_max_message_size(PurpleConnection *gc);
+
 /*@}*/
 
 /**************************************************************************/

mercurial