libpurple/xmlnode.h

branch
soc.2013.gobjectification.plugins
changeset 37017
8e2b68c79fa1
parent 34935
686fa55b0deb
child 37021
04c99b24db84
--- a/libpurple/xmlnode.h	Wed Jan 29 00:28:08 2014 +0530
+++ b/libpurple/xmlnode.h	Wed Jan 29 05:28:33 2014 +0530
@@ -70,66 +70,66 @@
 /**
  * Creates a new PurpleXmlNode.
  *
- * @param name The name of the node.
+ * @name: The name of the node.
  *
- * @return The new node.
+ * Returns: The new node.
  */
 PurpleXmlNode *purple_xmlnode_new(const char *name);
 
 /**
  * Creates a new PurpleXmlNode child.
  *
- * @param parent The parent node.
- * @param name   The name of the child node.
+ * @parent: The parent node.
+ * @name:   The name of the child node.
  *
- * @return The new child node.
+ * Returns: The new child node.
  */
 PurpleXmlNode *purple_xmlnode_new_child(PurpleXmlNode *parent, const char *name);
 
 /**
  * Inserts a node into a node as a child.
  *
- * @param parent The parent node to insert child into.
- * @param child  The child node to insert into parent.
+ * @parent: The parent node to insert child into.
+ * @child:  The child node to insert into parent.
  */
 void purple_xmlnode_insert_child(PurpleXmlNode *parent, PurpleXmlNode *child);
 
 /**
  * Gets a child node named name.
  *
- * @param parent The parent node.
- * @param name   The child's name.
+ * @parent: The parent node.
+ * @name:   The child's name.
  *
- * @return The child or NULL.
+ * Returns: The child or NULL.
  */
 PurpleXmlNode *purple_xmlnode_get_child(const PurpleXmlNode *parent, const char *name);
 
 /**
  * Gets a child node named name in a namespace.
  *
- * @param parent The parent node.
- * @param name   The child's name.
- * @param xmlns  The namespace.
+ * @parent: The parent node.
+ * @name:   The child's name.
+ * @xmlns:  The namespace.
  *
- * @return The child or NULL.
+ * Returns: The child or NULL.
  */
 PurpleXmlNode *purple_xmlnode_get_child_with_namespace(const PurpleXmlNode *parent, const char *name, const char *xmlns);
 
 /**
  * Gets the next node with the same name as node.
  *
- * @param node The node of a twin to find.
+ * @node: The node of a twin to find.
  *
- * @return The twin of node or NULL.
+ * Returns: The twin of node or NULL.
  */
 PurpleXmlNode *purple_xmlnode_get_next_twin(PurpleXmlNode *node);
 
 /**
  * Inserts data into a node.
  *
- * @param node   The node to insert data into.
- * @param data   The data to insert.
- * @param size   The size of the data to insert.  If data is
+ * @node:   The node to insert data into.
+ * @data:   The data to insert.
+ * @size:   The size of the data to insert.  If data is
  *               null-terminated you can pass in -1.
  */
 void purple_xmlnode_insert_data(PurpleXmlNode *node, const char *data, gssize size);
@@ -137,9 +137,9 @@
 /**
  * Gets (escaped) data from a node.
  *
- * @param node The node to get data from.
+ * @node: The node to get data from.
  *
- * @return The data from the node or NULL. This data is in raw escaped format.
+ * Returns: The data from the node or NULL. This data is in raw escaped format.
  *         You must g_free this string when finished using it.
  */
 char *purple_xmlnode_get_data(const PurpleXmlNode *node);
@@ -147,9 +147,9 @@
 /**
  * Gets unescaped data from a node.
  *
- * @param node The node to get data from.
+ * @node: The node to get data from.
  *
- * @return The data from the node, in unescaped form.   You must g_free
+ * Returns: The data from the node, in unescaped form.   You must g_free
  *         this string when finished using it.
  */
 char *purple_xmlnode_get_data_unescaped(const PurpleXmlNode *node);
@@ -157,20 +157,20 @@
 /**
  * Sets an attribute for a node.
  *
- * @param node  The node to set an attribute for.
- * @param attr  The name of the attribute.
- * @param value The value of the attribute.
+ * @node:  The node to set an attribute for.
+ * @attr:  The name of the attribute.
+ * @value: The value of the attribute.
  */
 void purple_xmlnode_set_attrib(PurpleXmlNode *node, const char *attr, const char *value);
 
 /**
  * Sets a namespaced attribute for a node
  *
- * @param node   The node to set an attribute for.
- * @param attr   The name of the attribute to set
- * @param xmlns  The namespace of the attribute to set
- * @param prefix The prefix of the attribute to set
- * @param value  The value of the attribute
+ * @node:   The node to set an attribute for.
+ * @attr:   The name of the attribute to set
+ * @xmlns:  The namespace of the attribute to set
+ * @prefix: The prefix of the attribute to set
+ * @value:  The value of the attribute
  */
 void purple_xmlnode_set_attrib_full(PurpleXmlNode *node, const char *attr, const char *xmlns,
 		const char *prefix, const char *value);
@@ -178,54 +178,54 @@
 /**
  * Gets an attribute from a node.
  *
- * @param node The node to get an attribute from.
- * @param attr The attribute to get.
+ * @node: The node to get an attribute from.
+ * @attr: The attribute to get.
  *
- * @return The value of the attribute.
+ * Returns: The value of the attribute.
  */
 const char *purple_xmlnode_get_attrib(const PurpleXmlNode *node, const char *attr);
 
 /**
  * Gets a namespaced attribute from a node
  *
- * @param node  The node to get an attribute from.
- * @param attr  The attribute to get
- * @param xmlns The namespace of the attribute to get
+ * @node:  The node to get an attribute from.
+ * @attr:  The attribute to get
+ * @xmlns: The namespace of the attribute to get
  *
- * @return The value of the attribute/
+ * Returns: The value of the attribute/
  */
 const char *purple_xmlnode_get_attrib_with_namespace(const PurpleXmlNode *node, const char *attr, const char *xmlns);
 
 /**
  * Removes an attribute from a node.
  *
- * @param node The node to remove an attribute from.
- * @param attr The attribute to remove.
+ * @node: The node to remove an attribute from.
+ * @attr: The attribute to remove.
  */
 void purple_xmlnode_remove_attrib(PurpleXmlNode *node, const char *attr);
 
 /**
  * Removes a namespaced attribute from a node
  *
- * @param node  The node to remove an attribute from
- * @param attr  The attribute to remove
- * @param xmlns The namespace of the attribute to remove
+ * @node:  The node to remove an attribute from
+ * @attr:  The attribute to remove
+ * @xmlns: The namespace of the attribute to remove
  */
 void purple_xmlnode_remove_attrib_with_namespace(PurpleXmlNode *node, const char *attr, const char *xmlns);
 
 /**
  * Sets the namespace of a node
  *
- * @param node The node to qualify
- * @param xmlns The namespace of the node
+ * @node: The node to qualify
+ * @xmlns: The namespace of the node
  */
 void purple_xmlnode_set_namespace(PurpleXmlNode *node, const char *xmlns);
 
 /**
  * Returns the namespace of a node
  *
- * @param node The node to get the namepsace from
- * @return The namespace of this node
+ * @node: The node to get the namepsace from
+ * Returns: The namespace of this node
  */
 const char *purple_xmlnode_get_namespace(const PurpleXmlNode *node);
 
@@ -245,33 +245,33 @@
  * The default namespace of all nodes (including 'child1') is "jabber:client",
  * though the namespace for 'element' is "http://example.org/ns1".
  *
- * @param node The node for which to return the default namespace
- * @return The default namespace of this node
+ * @node: The node for which to return the default namespace
+ * Returns: The default namespace of this node
  */
 const char *purple_xmlnode_get_default_namespace(const PurpleXmlNode *node);
 
 /**
  * Returns the defined namespace for a prefix.
  *
- * @param node The node from which to start the search.
- * @param prefix The prefix for which to return the associated namespace.
- * @return The namespace for this prefix.
+ * @node: The node from which to start the search.
+ * @prefix: The prefix for which to return the associated namespace.
+ * Returns: The namespace for this prefix.
  */
 const char *purple_xmlnode_get_prefix_namespace(const PurpleXmlNode *node, const char *prefix);
 
 /**
  * Sets the prefix of a node
  *
- * @param node   The node to qualify
- * @param prefix The prefix of the node
+ * @node:   The node to qualify
+ * @prefix: The prefix of the node
  */
 void purple_xmlnode_set_prefix(PurpleXmlNode *node, const char *prefix);
 
 /**
  * Returns the prefix of a node
  *
- * @param node The node to get the prefix from
- * @return The prefix of this node
+ * @node: The node to get the prefix from
+ * Returns: The prefix of this node
  */
 const char *purple_xmlnode_get_prefix(const PurpleXmlNode *node);
 
@@ -284,26 +284,26 @@
  * break some applications (SOAP / XPath apparently often rely on
  * the prefixes having the same name.
  *
- * @param node The node from which to strip prefixes
+ * @node: The node from which to strip prefixes
  */
 void purple_xmlnode_strip_prefixes(PurpleXmlNode *node);
 
 /**
  * Gets the parent node.
  *
- * @param child The child node.
+ * @child: The child node.
  *
- * @return The parent or NULL.
+ * Returns: The parent or NULL.
  */
 PurpleXmlNode *purple_xmlnode_get_parent(const PurpleXmlNode *child);
 
 /**
  * Returns the node in a string of xml.
  *
- * @param node The starting node to output.
- * @param len  Address for the size of the string.
+ * @node: The starting node to output.
+ * @len:  Address for the size of the string.
  *
- * @return The node represented as a string.  You must
+ * Returns: The node represented as a string.  You must
  *         g_free this string when finished using it.
  */
 char *purple_xmlnode_to_str(const PurpleXmlNode *node, int *len);
@@ -311,10 +311,10 @@
 /**
  * Returns the node in a string of human readable xml.
  *
- * @param node The starting node to output.
- * @param len  Address for the size of the string.
+ * @node: The starting node to output.
+ * @len:  Address for the size of the string.
  *
- * @return The node as human readable string including
+ * Returns: The node as human readable string including
  *         tab and new line characters.  You must
  *         g_free this string when finished using it.
  */
@@ -325,27 +325,27 @@
  * root node of an XML document will parse the entire document
  * into a tree of nodes, and return the PurpleXmlNode of the root.
  *
- * @param str  The string of xml.
- * @param size The size of the string, or -1 if @a str is
+ * @str:  The string of xml.
+ * @size: The size of the string, or -1 if @a str is
  *             NUL-terminated.
  *
- * @return The new node.
+ * Returns: The new node.
  */
 PurpleXmlNode *purple_xmlnode_from_str(const char *str, gssize size);
 
 /**
  * Creates a new node from the source node.
  *
- * @param src The node to copy.
+ * @src: The node to copy.
  *
- * @return A new copy of the src node.
+ * Returns: A new copy of the src node.
  */
 PurpleXmlNode *purple_xmlnode_copy(const PurpleXmlNode *src);
 
 /**
  * Frees a node and all of its children.
  *
- * @param node The node to free.
+ * @node: The node to free.
  */
 void purple_xmlnode_free(PurpleXmlNode *node);
 
@@ -354,14 +354,14 @@
  * root node of an XML document will parse the entire document
  * into a tree of nodes, and return the PurpleXmlNode of the root.
  *
- * @param dir  The directory where the file is located
- * @param filename  The filename
- * @param description  A description of the file being parsed. Displayed to
+ * @dir:  The directory where the file is located
+ * @filename:  The filename
+ * @description:  A description of the file being parsed. Displayed to
  *        the user if the file cannot be read.
- * @param process  The subsystem that is calling purple_xmlnode_from_file. Used as
+ * @process:  The subsystem that is calling purple_xmlnode_from_file. Used as
  *        the category for debugging.
  *
- * @return The new node or NULL if an error occurred.
+ * Returns: The new node or NULL if an error occurred.
  */
 PurpleXmlNode *purple_xmlnode_from_file(const char *dir, const char *filename,
 		const char *description, const char *process);

mercurial