Mercurial > pidgin.yaz
comparison src/xmlnode.h @ 10424:108151be77a3
[gaim-migrate @ 11676]
Those 2 helper functions in xmlnode made things less readable...
Lesson #456: Helper functions, while possible saving time, can
hurt you in the long run when they steal your wallet.
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Sun, 26 Dec 2004 18:58:36 +0000 |
| parents | 3232e1a33899 |
| children | 9903182f2aac |
comparison
equal
deleted
inserted
replaced
| 10423:3232e1a33899 | 10424:108151be77a3 |
|---|---|
| 57 * @return The new node. | 57 * @return The new node. |
| 58 */ | 58 */ |
| 59 xmlnode *xmlnode_new(const char *name); | 59 xmlnode *xmlnode_new(const char *name); |
| 60 | 60 |
| 61 /** | 61 /** |
| 62 * Creates a new xmlnode and inserts data into it. | |
| 63 * | |
| 64 * @param name The name of the node. | |
| 65 * @param data The data to insert. | |
| 66 * @param size The size of the data to insert. If data is | |
| 67 * null-terminated you can pass in -1. | |
| 68 * | |
| 69 * @return The new node. | |
| 70 */ | |
| 71 xmlnode *xmlnode_new_with_data(const char *name, | |
| 72 const char *data, size_t size); | |
| 73 | |
| 74 /** | |
| 75 * Creates a new xmlnode child. | 62 * Creates a new xmlnode child. |
| 76 * | 63 * |
| 77 * @param parent The parent node. | 64 * @param parent The parent node. |
| 78 * @param name The name of the child node. | 65 * @param name The name of the child node. |
| 79 * | 66 * |
| 80 * @return The new child node. | 67 * @return The new child node. |
| 81 */ | 68 */ |
| 82 xmlnode *xmlnode_new_child(xmlnode *parent, const char *name); | 69 xmlnode *xmlnode_new_child(xmlnode *parent, const char *name); |
| 83 | |
| 84 /** | |
| 85 * Creates a new xmlnode child and inserts data into it. | |
| 86 * | |
| 87 * @param parent The parent node. | |
| 88 * @param name The name of the child node. | |
| 89 * @param data The data to insert. | |
| 90 * @param size The size of the data to insert. If data is | |
| 91 * null-terminated you can pass in -1. | |
| 92 * | |
| 93 * @return The new child node. | |
| 94 */ | |
| 95 xmlnode *xmlnode_new_child_with_data(xmlnode *parent, const char *name, | |
| 96 const char *data, size_t size); | |
| 97 | 70 |
| 98 /** | 71 /** |
| 99 * Inserts a node into a node as a child. | 72 * Inserts a node into a node as a child. |
| 100 * | 73 * |
| 101 * @param parent The parent node to insert child into. | 74 * @param parent The parent node to insert child into. |
