[svn-commits] bbryant: branch group/data_api_gsoc2009 r201898 - /team/group/data_api_gsoc20...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Jun 19 09:22:31 CDT 2009


Author: bbryant
Date: Fri Jun 19 09:22:28 2009
New Revision: 201898

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=201898
Log:
Some changes to the ast_data node 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=201898&r1=201897&r2=201898
==============================================================================
--- team/group/data_api_gsoc2009/main/data.c (original)
+++ team/group/data_api_gsoc2009/main/data.c Fri Jun 19 09:22:28 2009
@@ -36,14 +36,22 @@
 /*! \brief The data tree to be returned by the callbacks and 
            managed by functions local to this file. */
 struct ast_data {
-	/*! \brief The type of the node content. */
-	enum ast_data_type type;
+	enum ast_data_element_t type;
+
 	/*! \brief The node content. */
 	union {
-		unsigned int boolean:1;
-		int integer;
-		char *string;
-	} payload;
+		int32_t integer; /* I know int32_t isn't defined in 
+						    POSIX as part of stdint.h, what 
+							about compatibility with other 
+							operating systems? */
+		uint32_t unsigned_integer;
+		double number;
+		uint32_t boolean:1;
+		char *str;
+		struct in_addr ipaddr;
+		void *ptr;
+	} paylod;
+
 	/*! \brief The list of nodes inside this node. */
 	struct ao2_container *children;
 	/*! \brief The name of the node. */




More information about the svn-commits mailing list