comparison libpurple/xmlnode.h @ 25918:bc8d1607f9b8

propagate from branch 'im.pidgin.pidgin' (head 566d2e86bfd45c806aba1b32d6f85a9a409ff9ea) to branch 'im.pidgin.pidgin.next.minor' (head ffd76856f93610f7cd6178e943d0b61e4220b549)
author Richard Laager <rlaager@wiktel.com>
date Mon, 26 Jan 2009 02:39:55 +0000
parents 4aeef8c3cce3
children d25cbbea7fe5
comparison
equal deleted inserted replaced
25372:a8db457c421a 25918:bc8d1607f9b8
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_ */