Mercurial > pidgin
comparison libpurple/xmlnode.h @ 25889:e2b193decaa5
explicit merge of '814d53152c168c9c4732b3d084260711d536fba6'
and 'af375020001eed33302b471e7ee9dec6a478e824'
| author | Richard Laager <rlaager@wiktel.com> |
|---|---|
| date | Fri, 02 Jan 2009 22:23:58 +0000 |
| parents | 4aeef8c3cce3 |
| children | d25cbbea7fe5 |
comparison
equal
deleted
inserted
replaced
| 24844:94a47062819c | 25889:e2b193decaa5 |
|---|---|
| 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_ */ |
