[asterisk-commits] bbryant: branch group/data_api_gsoc2009 r201095 - /team/group/data_api_gsoc20...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jun 16 14:41:36 CDT 2009


Author: bbryant
Date: Tue Jun 16 14:41:33 2009
New Revision: 201095

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=201095
Log:
Committing the structure of the basic data tree returned from callbacks to and from the data api.

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=201095&r1=201094&r2=201095
==============================================================================
--- team/group/data_api_gsoc2009/main/data.c (original)
+++ team/group/data_api_gsoc2009/main/data.c Tue Jun 16 14:41:33 2009
@@ -32,6 +32,30 @@
 #include "asterisk/astobj2.h"
 
 #define NUM_DATA_NODE_BUCKETS 60
+
+/*! \brief The data tree to be returned by the callbacks and 
+           managed by functions local to this file. */
+struct ast_data {
+	struct ao2_container *children;
+};
+
+/*! \brief The data type of the data node. */
+enum ast_data_element_t {
+	INTEGER,
+	UNSIGNED_INTEGER,
+	DOUBLE,
+	STRING,
+	IPADDR,
+	POINTER
+};
+
+/*! \brief The structure of a node in an ast_data tree used 
+           throughout the callbacks*/
+struct ast_data_element {
+	enum ast_data_element_t type;
+	char *name;
+	char data[0];
+};
 
 /*! \brief A data container node pointing to the registered handler. */
 struct data_node_provider {




More information about the asterisk-commits mailing list