Thu, 30 Oct 2008 22:40:49 +0000
Build everything with the *_DISABLE_DEPRECATED flags set. This allows us
to detect when we're still using deprecated functions internally (and by
extension, when we've deprecated something we shouldn't have). In the
course of developing this changeset, I fixed a few such cases.
Given that the plan is to switch from PURPLE_HIDE_STRUCTS to
PURPLE_DISABLE_DEPRECATED as each struct is fully dealt with, this will
also ensure we have no regressions on the struct hiding work.
Deprecated functions are still available to the respective .c file, to
avoid missing prototype errors. Also, Perl and DBus undef the
*_DISABLE_DEPRECATED defines as appropriate so that deprecated functions
will still be exported to Perl plugins and via DBus. (Otherwise, we'd
be breaking backwards compatibility.)
#include "module.h" MODULE = Purple::XMLNode PACKAGE = Purple::XMLNode PREFIX = xmlnode_ PROTOTYPES: ENABLE Purple::XMLNode xmlnode_copy(class, src) Purple::XMLNode src C_ARGS: src void xmlnode_free(node) Purple::XMLNode node Purple::XMLNode xmlnode_from_str(class, str, size) const char *str gssize size C_ARGS: str, size 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 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_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, len) Purple::XMLNode node int *len gchar_own * xmlnode_to_str(node, len) Purple::XMLNode node int *len