Mercurial > pidgin.yaz
changeset 14324:2d7086454b08
[gaim-migrate @ 17019]
dbus goodness
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Thu, 24 Aug 2006 18:33:53 +0000 |
parents | a0a360de39d8 |
children | 985e5e3f6f2c |
files | libgaim/xmlnode.c libgaim/xmlnode.h |
diffstat | 2 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 <string.h> #include <glib.h> +#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); }
--- 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.