Mercurial > pidgin
comparison src/xmlnode.h @ 10423:3232e1a33899
[gaim-migrate @ 11675]
Set version numbers for all our xml files
Use xmlnode for writing accounts.xml
Add 2 conveniencey helper functions to xmlnode
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Sun, 26 Dec 2004 18:38:22 +0000 |
| parents | 5b7a74d397cc |
| children | 108151be77a3 |
comparison
equal
deleted
inserted
replaced
| 10422:e0cf2f3f9929 | 10423:3232e1a33899 |
|---|---|
| 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 /** | |
| 62 * Creates a new xmlnode child. | 75 * Creates a new xmlnode child. |
| 63 * | 76 * |
| 64 * @param parent The parent node. | 77 * @param parent The parent node. |
| 65 * @param name The name of the child node. | 78 * @param name The name of the child node. |
| 66 * | 79 * |
| 67 * @return The new child node. | 80 * @return The new child node. |
| 68 */ | 81 */ |
| 69 xmlnode *xmlnode_new_child(xmlnode *parent, const char *name); | 82 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); | |
| 70 | 97 |
| 71 /** | 98 /** |
| 72 * Inserts a node into a node as a child. | 99 * Inserts a node into a node as a child. |
| 73 * | 100 * |
| 74 * @param parent The parent node to insert child into. | 101 * @param parent The parent node to insert child into. |
