comparison libpurple/xmlnode.h @ 25086:774ef2a2e7f8

added a more generic function to read xml files (and made the util version into a wrapper) so it can be used by the theme loaders
author Justin Rodriguez <ffdragon@soc.pidgin.im>
date Mon, 16 Jun 2008 21:43:34 +0000
parents eb0f36c3a58f
children 4aeef8c3cce3
comparison
equal deleted inserted replaced
25085:fecc8e2612c4 25086:774ef2a2e7f8
295 * 295 *
296 * @param node The node to free. 296 * @param node The node to free.
297 */ 297 */
298 void xmlnode_free(xmlnode *node); 298 void xmlnode_free(xmlnode *node);
299 299
300 /**
301 * Creates a node from a XML File. Calling this on the
302 * root node of an XML document will parse the entire document
303 * into a tree of nodes, and return the xmlnode of the root.
304 *
305 * @param str The string of xml.
306 * @param description The description of the file being parsed
307 * @process The utility that is calling xmlnode_from_file
308 *
309 * @return The new node.
310 */
311 xmlnode *xmlnode_from_file(const char *dir, const char *filename,
312 const char *description, const char *process);
313
300 #ifdef __cplusplus 314 #ifdef __cplusplus
301 } 315 }
302 #endif 316 #endif
303 317
304 #endif /* _PURPLE_XMLNODE_H_ */ 318 #endif /* _PURPLE_XMLNODE_H_ */