libpurple/xmlnode.h

branch
soc.2008.themes
changeset 23643
4a68ddefa857
parent 21552
6920e51d8f27
child 23659
8251d0f67df5
--- a/libpurple/xmlnode.h	Mon Jun 16 19:48:56 2008 +0000
+++ b/libpurple/xmlnode.h	Mon Jun 16 21:43:34 2008 +0000
@@ -297,6 +297,20 @@
  */
 void xmlnode_free(xmlnode *node);
 
+/**
+ * Creates a node from a XML File.  Calling this on the
+ * root node of an XML document will parse the entire document
+ * into a tree of nodes, and return the xmlnode of the root.
+ *
+ * @param str  The string of xml.
+ * @param description  The description of the file being parsed
+ * @process  The utility that is calling xmlnode_from_file
+ *
+ * @return The new node.
+ */
+xmlnode *xmlnode_from_file(const char *dir, const char *filename, 
+			   const char *description, const char *process);
+
 #ifdef __cplusplus
 }
 #endif

mercurial