Mercurial > pidgin.yaz
comparison src/xmlnode.h @ 10415:5b7a74d397cc
[gaim-migrate @ 11665]
Ability to save statuses.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 25 Dec 2004 19:54:24 +0000 |
parents | 682201b69107 |
children | 3232e1a33899 |
comparison
equal
deleted
inserted
replaced
10414:26eac2362c32 | 10415:5b7a74d397cc |
---|---|
107 xmlnode *xmlnode_get_next_twin(xmlnode *node); | 107 xmlnode *xmlnode_get_next_twin(xmlnode *node); |
108 | 108 |
109 /** | 109 /** |
110 * Inserts data into a node. | 110 * Inserts data into a node. |
111 * | 111 * |
112 * @param parent The node to insert data into. | 112 * @param node The node to insert data into. |
113 * @param data The data to insert. | 113 * @param data The data to insert. |
114 * @param size The size of the data to insert. | 114 * @param size The size of the data to insert. If data is |
115 */ | 115 * null-terminated you can pass in -1. |
116 void xmlnode_insert_data(xmlnode *parent, const char *data, size_t size); | 116 */ |
117 void xmlnode_insert_data(xmlnode *node, const char *data, size_t size); | |
117 | 118 |
118 /** | 119 /** |
119 * Gets data from a node. | 120 * Gets data from a node. |
120 * | 121 * |
121 * @param node The node to get data from. | 122 * @param node The node to get data from. |
155 * Returns the node in a string of xml. | 156 * Returns the node in a string of xml. |
156 * | 157 * |
157 * @param node The starting node to output. | 158 * @param node The starting node to output. |
158 * @param len Address for the size of the string. | 159 * @param len Address for the size of the string. |
159 * | 160 * |
160 * @return The node repersented as a string. | 161 * @return The node repersented as a string. You must |
161 */ | 162 * g_free this string when finished using it. |
162 char *xmlnode_to_str(xmlnode *node, int *len); | 163 */ |
164 gchar *xmlnode_to_str(xmlnode *node, int *len); | |
163 | 165 |
164 /** | 166 /** |
165 * Returns the node in a string of human readable xml. | 167 * Returns the node in a string of human readable xml. |
166 * | 168 * |
167 * @param node The starting node to output. | 169 * @param node The starting node to output. |
168 * @param len Address for the size of the string. | 170 * @param len Address for the size of the string. |
169 * | 171 * |
170 * @return The node as human readable string including | 172 * @return The node as human readable string including |
171 * tab and new line characters. | 173 * tab and new line characters. You must |
172 */ | 174 * g_free this string when finished using it. |
173 char *xmlnode_to_formatted_str(xmlnode *node, int *len); | 175 */ |
176 gchar *xmlnode_to_formatted_str(xmlnode *node, int *len); | |
174 | 177 |
175 /** | 178 /** |
176 * Creates a node from a string of XML. Calling this on the | 179 * Creates a node from a string of XML. Calling this on the |
177 * root node of an XML document will parse the entire document | 180 * root node of an XML document will parse the entire document |
178 * into a tree of nodes, and return the xmlnode of the root. | 181 * into a tree of nodes, and return the xmlnode of the root. |