Mercurial > pidgin
comparison libpurple/xmlnode.c @ 15822:32c366eeeb99
sed -ie 's/gaim/purple/g'
| author | Sean Egan <seanegan@gmail.com> |
|---|---|
| date | Mon, 19 Mar 2007 07:01:17 +0000 |
| parents | c2d75b47198d |
| children | 8bcd5840fb12 |
comparison
equal
deleted
inserted
replaced
| 15821:84b0f9b23ede | 15822:32c366eeeb99 |
|---|---|
| 1 /** | 1 /** |
| 2 * @file xmlnode.c XML DOM functions | 2 * @file xmlnode.c XML DOM functions |
| 3 * | 3 * |
| 4 * gaim | 4 * purple |
| 5 * | 5 * |
| 6 * Gaim is the legal property of its developers, whose names are too numerous | 6 * Purple is the legal property of its developers, whose names are too numerous |
| 7 * to list here. Please refer to the COPYRIGHT file distributed with this | 7 * to list here. Please refer to the COPYRIGHT file distributed with this |
| 8 * source distribution. | 8 * source distribution. |
| 9 * | 9 * |
| 10 * This program is free software; you can redistribute it and/or modify | 10 * This program is free software; you can redistribute it and/or modify |
| 11 * it under the terms of the GNU General Public License as published by | 11 * it under the terms of the GNU General Public License as published by |
| 49 xmlnode *node = g_new0(xmlnode, 1); | 49 xmlnode *node = g_new0(xmlnode, 1); |
| 50 | 50 |
| 51 node->name = g_strdup(name); | 51 node->name = g_strdup(name); |
| 52 node->type = type; | 52 node->type = type; |
| 53 | 53 |
| 54 GAIM_DBUS_REGISTER_POINTER(node, xmlnode); | 54 PURPLE_DBUS_REGISTER_POINTER(node, xmlnode); |
| 55 | 55 |
| 56 return node; | 56 return node; |
| 57 } | 57 } |
| 58 | 58 |
| 59 xmlnode* | 59 xmlnode* |
| 276 | 276 |
| 277 g_free(node->name); | 277 g_free(node->name); |
| 278 g_free(node->data); | 278 g_free(node->data); |
| 279 g_free(node->xmlns); | 279 g_free(node->xmlns); |
| 280 | 280 |
| 281 GAIM_DBUS_UNREGISTER_POINTER(node); | 281 PURPLE_DBUS_UNREGISTER_POINTER(node); |
| 282 g_free(node); | 282 g_free(node); |
| 283 } | 283 } |
| 284 | 284 |
| 285 xmlnode* | 285 xmlnode* |
| 286 xmlnode_get_child(const xmlnode *parent, const char *name) | 286 xmlnode_get_child(const xmlnode *parent, const char *name) |
| 469 int attrib_len = attributes[i+4] - attributes[i+3]; | 469 int attrib_len = attributes[i+4] - attributes[i+3]; |
| 470 char *attrib = g_malloc(attrib_len + 1); | 470 char *attrib = g_malloc(attrib_len + 1); |
| 471 memcpy(attrib, attributes[i+3], attrib_len); | 471 memcpy(attrib, attributes[i+3], attrib_len); |
| 472 attrib[attrib_len] = '\0'; | 472 attrib[attrib_len] = '\0'; |
| 473 txt = attrib; | 473 txt = attrib; |
| 474 attrib = gaim_unescape_html(txt); | 474 attrib = purple_unescape_html(txt); |
| 475 g_free(txt); | 475 g_free(txt); |
| 476 xmlnode_set_attrib(node, (const char*) attributes[i], attrib); | 476 xmlnode_set_attrib(node, (const char*) attributes[i], attrib); |
| 477 g_free(attrib); | 477 g_free(attrib); |
| 478 } | 478 } |
| 479 | 479 |
