Mercurial > pidgin
comparison libpurple/xmlnode.h @ 32433:98520ee78f12
Use G_BEGIN/END_DECLS in public libpurple files. This was
previously inconsistent. Sometimes there was even both the
GLib macros and an extern "C" line.
| author | Elliott Sales de Andrade <qulogic@pidgin.im> |
|---|---|
| date | Tue, 03 Jan 2012 23:32:59 +0000 |
| parents | 5aa171c8776b |
| children |
comparison
equal
deleted
inserted
replaced
| 32432:79fdae8fa875 | 32433:98520ee78f12 |
|---|---|
| 25 */ | 25 */ |
| 26 #ifndef _PURPLE_XMLNODE_H_ | 26 #ifndef _PURPLE_XMLNODE_H_ |
| 27 #define _PURPLE_XMLNODE_H_ | 27 #define _PURPLE_XMLNODE_H_ |
| 28 | 28 |
| 29 #include <glib.h> | 29 #include <glib.h> |
| 30 | |
| 31 #ifdef __cplusplus | |
| 32 extern "C" { | |
| 33 #endif | |
| 34 | 30 |
| 35 /** | 31 /** |
| 36 * The valid types for an xmlnode | 32 * The valid types for an xmlnode |
| 37 */ | 33 */ |
| 38 typedef enum | 34 typedef enum |
| 59 xmlnode *next; /**< The next node or @c NULL. */ | 55 xmlnode *next; /**< The next node or @c NULL. */ |
| 60 char *prefix; /**< The namespace prefix if any. */ | 56 char *prefix; /**< The namespace prefix if any. */ |
| 61 GHashTable *namespace_map; /**< The namespace map. */ | 57 GHashTable *namespace_map; /**< The namespace map. */ |
| 62 }; | 58 }; |
| 63 | 59 |
| 60 G_BEGIN_DECLS | |
| 61 | |
| 64 /** | 62 /** |
| 65 * Creates a new xmlnode. | 63 * Creates a new xmlnode. |
| 66 * | 64 * |
| 67 * @param name The name of the node. | 65 * @param name The name of the node. |
| 68 * | 66 * |
| 358 * @return The new node or NULL if an error occurred. | 356 * @return The new node or NULL if an error occurred. |
| 359 */ | 357 */ |
| 360 xmlnode *xmlnode_from_file(const char *dir, const char *filename, | 358 xmlnode *xmlnode_from_file(const char *dir, const char *filename, |
| 361 const char *description, const char *process); | 359 const char *description, const char *process); |
| 362 | 360 |
| 363 #ifdef __cplusplus | 361 G_END_DECLS |
| 364 } | |
| 365 #endif | |
| 366 | 362 |
| 367 #endif /* _PURPLE_XMLNODE_H_ */ | 363 #endif /* _PURPLE_XMLNODE_H_ */ |
| 368 | 364 |
