From: <fac...@us...> - 2006-08-24 18:34:08
|
Revision: 17019 Author: faceprint Date: 2006-08-24 11:33:53 -0700 (Thu, 24 Aug 2006) ViewCVS: http://svn.sourceforge.net/gaim/?rev=17019&view=rev Log Message: ----------- dbus goodness Modified Paths: -------------- trunk/libgaim/xmlnode.c trunk/libgaim/xmlnode.h Modified: trunk/libgaim/xmlnode.c =================================================================== --- trunk/libgaim/xmlnode.c 2006-08-24 17:37:24 UTC (rev 17018) +++ trunk/libgaim/xmlnode.c 2006-08-24 18:33:53 UTC (rev 17019) @@ -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); } Modified: trunk/libgaim/xmlnode.h =================================================================== --- trunk/libgaim/xmlnode.h 2006-08-24 17:37:24 UTC (rev 17018) +++ trunk/libgaim/xmlnode.h 2006-08-24 18:33:53 UTC (rev 17019) @@ -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. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |