Mercurial > pidgin
view libpurple/plugins/perl/common/XMLNode.xs @ 29612:8f442c566ff2
jabber: Adjust amount of data to send in IBB packets so that at most block-size
bytes of BASE64-encoded data is sent, based on discussion on the standars@j.o
list. Keep accepting receiving packets containing up to block-size bytes of
decoded data to stay compatible with previous version, and other clients who
made that assuption.
author | Marcus Lundblad <ml@update.uu.se> |
---|---|
date | Thu, 18 Mar 2010 21:19:44 +0000 |
parents | 1662dbdac18c |
children |
line wrap: on
line source
#include "module.h" MODULE = Purple::XMLNode PACKAGE = Purple::XMLNode PREFIX = xmlnode_ PROTOTYPES: ENABLE Purple::XMLNode xmlnode_copy(src) Purple::XMLNode src void xmlnode_free(node) Purple::XMLNode node Purple::XMLNode xmlnode_from_str(const char *str, gssize length(str)) PROTOTYPE: $ const char * xmlnode_get_name(node) Purple::XMLNode node CODE: RETVAL = node->name; OUTPUT: RETVAL const char * xmlnode_get_attrib(node, attr) Purple::XMLNode node const char *attr Purple::XMLNode xmlnode_get_child(parent, name) Purple::XMLNode parent const char *name PREINIT: xmlnode *tmp; CODE: if (!name || *name == '\0') { tmp = parent->child; while (tmp && tmp->type != XMLNODE_TYPE_TAG) tmp = tmp->next; RETVAL = tmp; } else RETVAL = xmlnode_get_child(parent, name); OUTPUT: RETVAL Purple::XMLNode xmlnode_get_child_with_namespace(parent, name, xmlns) Purple::XMLNode parent const char *name const char *xmlns gchar_own * xmlnode_get_data(node) Purple::XMLNode node Purple::XMLNode xmlnode_get_next(node) Purple::XMLNode node PREINIT: xmlnode *tmp; CODE: tmp = node->next; while (tmp && tmp->type != XMLNODE_TYPE_TAG) tmp = tmp->next; RETVAL = tmp; OUTPUT: RETVAL Purple::XMLNode xmlnode_get_next_twin(node) Purple::XMLNode node void xmlnode_insert_child(parent, child) Purple::XMLNode parent Purple::XMLNode child void xmlnode_insert_data(node, data, size) Purple::XMLNode node const char *data gssize size Purple::XMLNode xmlnode_new(class, name) const char *name C_ARGS: name Purple::XMLNode xmlnode_new_child(parent, name) Purple::XMLNode parent const char *name void xmlnode_remove_attrib(node, attr) Purple::XMLNode node const char *attr void xmlnode_set_attrib(node, attr, value) Purple::XMLNode node const char *attr const char *value gchar_own * xmlnode_to_formatted_str(node) Purple::XMLNode node CODE: RETVAL = xmlnode_to_formatted_str(node, NULL); OUTPUT: RETVAL gchar_own * xmlnode_to_str(node) Purple::XMLNode node CODE: RETVAL = xmlnode_to_str(node, NULL); OUTPUT: RETVAL