summaryrefslogtreecommitdiff
path: root/libpurple/xmlnode.c
diff options
context:
space:
mode:
authorMichael Ruprecht <maiku@pidgin.im>2009-02-05 00:31:35 +0000
committerMichael Ruprecht <maiku@pidgin.im>2009-02-05 00:31:35 +0000
commit94c5f5455e384036c35428002652331b345f6794 (patch)
tree4008a167db60467e5687256f9750a8ac2e4a1200 /libpurple/xmlnode.c
parent1abc8b3e005bf8ea03c17b0f9edc83b529380755 (diff)
parentffb680fe8b48901c4adb2c1bdc0aa8792013c1ff (diff)
downloadpidgin-94c5f5455e384036c35428002652331b345f6794.tar.gz
propagate from branch 'im.pidgin.pidgin' (head 545c69f0b96bacaa2f93ecfc4200bb05dc103ea0)
to branch 'im.pidgin.pidgin.vv' (head 53ac539c8318e16dcdcd4c89e51b9c6a995a5726)
Diffstat (limited to 'libpurple/xmlnode.c')
-rw-r--r--libpurple/xmlnode.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libpurple/xmlnode.c b/libpurple/xmlnode.c
index bcfea76b0b..90cbb9dd0d 100644
--- a/libpurple/xmlnode.c
+++ b/libpurple/xmlnode.c
@@ -309,6 +309,12 @@ const char *xmlnode_get_prefix(const xmlnode *node)
return node->prefix;
}
+xmlnode *xmlnode_get_parent(const xmlnode *child)
+{
+ g_return_val_if_fail(child != NULL, NULL);
+ return child->parent;
+}
+
void
xmlnode_free(xmlnode *node)
{