summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2009-09-22 01:18:15 +0200
committerDavid Sommerseth <dazo@users.sourceforge.net>2009-09-22 01:18:15 +0200
commite463ba332146765c104cc8e37ba7ddd7dd0f7753 (patch)
tree32d8fe691dfcfb3ad12451ccd715e8b8098d02d2 /common
parentcb65b8e11fff22148716051c795a77bfd53f3c02 (diff)
downloadeurephia-e463ba332146765c104cc8e37ba7ddd7dd0f7753.tar.gz
eurephia-e463ba332146765c104cc8e37ba7ddd7dd0f7753.tar.xz
eurephia-e463ba332146765c104cc8e37ba7ddd7dd0f7753.zip
Fixed and cleaned up Doxygen comments
Diffstat (limited to 'common')
-rw-r--r--common/eurephia_xml.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/common/eurephia_xml.c b/common/eurephia_xml.c
index 80f2ccd..91eacf4 100644
--- a/common/eurephia_xml.c
+++ b/common/eurephia_xml.c
@@ -178,8 +178,19 @@ xmlNode *eurephiaXML_getRoot(eurephiaCTX *ctx, xmlDoc *doc, const char *nodeset,
* @param info_n xmlNode with more details about the result
* @param fmt stdarg format string
*
- * @return Returns a valid eurephia XML document as a properly formatted result message.
+ * @return Returns a valid eurephia ResultMsg XML document as a properly formatted result message.
* On failure, NULL is returned
+ *
+ * Skeleton for a eurephia ResultMsg XML document
+ * @code
+ * <eurephia format="1">
+ * <Result status="{Result|Error}">
+ * <Message>{String containing a descriptive message}</Message>
+ * [<Details>{xmlNode including children with more detailed information}</Details>]
+ * </Result>
+ * </eurephia>
+ * @endcode
+ * The status attribute is set to "Result" on success, and "Error" in error situations
*/
xmlDoc *eurephiaXML_ResultMsg(eurephiaCTX *ctx, exmlResultType type, xmlNode *info_n, const char *fmt, ... ) {
va_list ap;
@@ -228,13 +239,14 @@ xmlNode *eurephiaXML_getRoot(eurephiaCTX *ctx, xmlDoc *doc, const char *nodeset,
* Parses an eurephia Result XML document
*
* @param ctx eurephiaCTX
- * @param resxml The result XML document
+ * @param resxml The result XML document, as produced by eurephiaXML_ResultMsg()
*
* @return Returns a pointer to an eurephiaRESULT structure containing the results.
* On failure NULL is returned. This structure can be freed with free_nullsafe().
*
* @remark If the result XML document is freed, the information in eurephiaRESULT will be invalidated
* Immediately. However, the eurephiaRESULT pointer must still be freed.
+ * @see eurephiaXML_ResultMsg()
*/
eurephiaRESULT *eurephiaXML_ParseResultMsg(eurephiaCTX *ctx, xmlDoc *resxml) {
eurephiaRESULT *res = NULL;