Mercurial > pidgin
comparison libgaim/xmlnode.c @ 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 | 950f3ed6baa0 |
children | 289490ee84d1 |
comparison
equal
deleted
inserted
replaced
14323:a0a360de39d8 | 14324:2d7086454b08 |
---|---|
33 #include <libxml/parser.h> | 33 #include <libxml/parser.h> |
34 #endif | 34 #endif |
35 #include <string.h> | 35 #include <string.h> |
36 #include <glib.h> | 36 #include <glib.h> |
37 | 37 |
38 #include "dbus-maybe.h" | |
38 #include "util.h" | 39 #include "util.h" |
39 #include "xmlnode.h" | 40 #include "xmlnode.h" |
40 | 41 |
41 #ifdef _WIN32 | 42 #ifdef _WIN32 |
42 # define NEWLINE_S "\r\n" | 43 # define NEWLINE_S "\r\n" |
49 { | 50 { |
50 xmlnode *node = g_new0(xmlnode, 1); | 51 xmlnode *node = g_new0(xmlnode, 1); |
51 | 52 |
52 node->name = g_strdup(name); | 53 node->name = g_strdup(name); |
53 node->type = type; | 54 node->type = type; |
55 | |
56 GAIM_DBUS_REGISTER_POINTER(node, xmlnode); | |
54 | 57 |
55 return node; | 58 return node; |
56 } | 59 } |
57 | 60 |
58 xmlnode* | 61 xmlnode* |
216 g_free(node->name); | 219 g_free(node->name); |
217 g_free(node->data); | 220 g_free(node->data); |
218 #ifdef HAVE_LIBXML | 221 #ifdef HAVE_LIBXML |
219 g_free(node->namespace); | 222 g_free(node->namespace); |
220 #endif | 223 #endif |
224 | |
225 GAIM_DBUS_UNREGISTER_POINTER(node); | |
221 g_free(node); | 226 g_free(node); |
222 } | 227 } |
223 | 228 |
224 xmlnode* | 229 xmlnode* |
225 xmlnode_get_child(const xmlnode *parent, const char *name) | 230 xmlnode_get_child(const xmlnode *parent, const char *name) |