Mercurial > pidgin
comparison libpurple/xmlnode.h @ 25126:78b43f9c741b
propagate from branch 'im.pidgin.pidgin' (head 038d9d36d640ed83f9df5333d57dc0cd8b9ae847)
to branch 'im.pidgin.soc.2008.themes' (head b49d95f44169eb347061907f1842d56d9c3c826c)
author | Gary Kramlich <grim@reaperworld.com> |
---|---|
date | Thu, 21 Aug 2008 03:44:57 +0000 |
parents | 4aeef8c3cce3 |
children | d25cbbea7fe5 |
comparison
equal
deleted
inserted
replaced
23944:7cb7bc8865af | 25126:78b43f9c741b |
---|---|
23 * along with this program; if not, write to the Free Software | 23 * along with this program; if not, write to the Free Software |
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA | 24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
25 */ | 25 */ |
26 #ifndef _PURPLE_XMLNODE_H_ | 26 #ifndef _PURPLE_XMLNODE_H_ |
27 #define _PURPLE_XMLNODE_H_ | 27 #define _PURPLE_XMLNODE_H_ |
28 | |
29 #include <glib.h> | |
28 | 30 |
29 #ifdef __cplusplus | 31 #ifdef __cplusplus |
30 extern "C" { | 32 extern "C" { |
31 #endif | 33 #endif |
32 | 34 |
295 * | 297 * |
296 * @param node The node to free. | 298 * @param node The node to free. |
297 */ | 299 */ |
298 void xmlnode_free(xmlnode *node); | 300 void xmlnode_free(xmlnode *node); |
299 | 301 |
302 /** | |
303 * Creates a node from a XML File. Calling this on the | |
304 * root node of an XML document will parse the entire document | |
305 * into a tree of nodes, and return the xmlnode of the root. | |
306 * | |
307 * @param str The string of xml. | |
308 * @param description The description of the file being parsed | |
309 * @process The utility that is calling xmlnode_from_file | |
310 * | |
311 * @return The new node. | |
312 */ | |
313 xmlnode *xmlnode_from_file(const char *dir, const char *filename, | |
314 const char *description, const char *process); | |
315 | |
300 #ifdef __cplusplus | 316 #ifdef __cplusplus |
301 } | 317 } |
302 #endif | 318 #endif |
303 | 319 |
304 #endif /* _PURPLE_XMLNODE_H_ */ | 320 #endif /* _PURPLE_XMLNODE_H_ */ |