# HG changeset patch # User Nathan Walp # Date 1156444433 0 # Node ID 2d7086454b0821064b1672195a54c5bc6fe92b13 # Parent a0a360de39d885b6c24f3c415270d3940284f75e [gaim-migrate @ 17019] dbus goodness committer: Tailor Script diff -r a0a360de39d8 -r 2d7086454b08 libgaim/xmlnode.c --- a/libgaim/xmlnode.c Thu Aug 24 17:37:24 2006 +0000 +++ b/libgaim/xmlnode.c Thu Aug 24 18:33:53 2006 +0000 @@ -35,6 +35,7 @@ #include #include +#include "dbus-maybe.h" #include "util.h" #include "xmlnode.h" @@ -52,6 +53,8 @@ node->name = g_strdup(name); node->type = type; + GAIM_DBUS_REGISTER_POINTER(node, xmlnode); + return node; } @@ -218,6 +221,8 @@ #ifdef HAVE_LIBXML g_free(node->namespace); #endif + + GAIM_DBUS_UNREGISTER_POINTER(node); g_free(node); } diff -r a0a360de39d8 -r 2d7086454b08 libgaim/xmlnode.h --- a/libgaim/xmlnode.h Thu Aug 24 17:37:24 2006 +0000 +++ b/libgaim/xmlnode.h Thu Aug 24 18:33:53 2006 +0000 @@ -38,7 +38,8 @@ /** * An xmlnode. */ -typedef struct _xmlnode +typedef struct _xmlnode xmlnode; +struct _xmlnode { char *name; /**< The name of the node. */ #ifdef HAVE_LIBXML @@ -51,7 +52,7 @@ struct _xmlnode *child; /**< The child node or @c NULL.*/ struct _xmlnode *lastchild; /**< The last child node or @c NULL.*/ struct _xmlnode *next; /**< The next node or @c NULL. */ -} xmlnode; +}; /** * Creates a new xmlnode.