[asterisk-commits] eliel: branch group/data_api_gsoc2009 r201900 - /team/group/data_api_gsoc2009...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jun 19 09:32:58 CDT 2009


Author: eliel
Date: Fri Jun 19 09:32:54 2009
New Revision: 201900

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=201900
Log:
Minor changes to a enum naming convention.
Add bbryant to the authors list.
Minor typo in the union inside the ast_data structure.

Modified:
    team/group/data_api_gsoc2009/main/data.c

Modified: team/group/data_api_gsoc2009/main/data.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/group/data_api_gsoc2009/main/data.c?view=diff&rev=201900&r1=201899&r2=201900
==============================================================================
--- team/group/data_api_gsoc2009/main/data.c (original)
+++ team/group/data_api_gsoc2009/main/data.c Fri Jun 19 09:32:54 2009
@@ -18,6 +18,7 @@
  *
  * \brief Data retrieval API.
  *
+ * \author Brett Bryant <brettbryant at gmail.com>
  * \author Eliel C. Sardanons (LU1ALY) <eliels at gmail.com>
  */
 
@@ -36,7 +37,7 @@
 /*! \brief The data tree to be returned by the callbacks and 
            managed by functions local to this file. */
 struct ast_data {
-	enum ast_data_element_t type;
+	enum ast_data_type type;
 
 	/*! \brief The node content. */
 	union {
@@ -47,7 +48,7 @@
 		char *str;
 		struct in_addr ipaddr;
 		void *ptr;
-	} paylod;
+	} payload;
 
 	/*! \brief The list of nodes inside this node. */
 	struct ao2_container *children;
@@ -466,7 +467,7 @@
 	if (node->type == AST_DATA_STRING) {
 		/* If there is a string in the node, release the
 		 * used memory to store it. */
-		ast_free(node->payload.string);
+		ast_free(node->payload.str);
 	}
 }
 




More information about the asterisk-commits mailing list