[asterisk-commits] eliel: branch group/data_api_gsoc2009 r199225 - in /team/group/data_api_gsoc2...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jun 5 08:27:04 CDT 2009


Author: eliel
Date: Fri Jun  5 08:27:01 2009
New Revision: 199225

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=199225
Log:
Modify the name of the members, instead of read use 'get' and 'put'.

Modified:
    team/group/data_api_gsoc2009/include/asterisk/data.h
    team/group/data_api_gsoc2009/main/data.c

Modified: team/group/data_api_gsoc2009/include/asterisk/data.h
URL: http://svn.asterisk.org/svn-view/asterisk/team/group/data_api_gsoc2009/include/asterisk/data.h?view=diff&rev=199225&r1=199224&r2=199225
==============================================================================
--- team/group/data_api_gsoc2009/include/asterisk/data.h (original)
+++ team/group/data_api_gsoc2009/include/asterisk/data.h Fri Jun  5 08:27:01 2009
@@ -79,11 +79,13 @@
 /*! \brief opaque definition of an ast_data_node result. */
 struct ast_data_node;
 
-typedef struct ast_data_node *(*ast_data_read_cb)(void);
+typedef struct ast_data_node *(*ast_data_get_cb)(void);
+typedef struct ast_data_node *(*ast_data_put_cb)(void);
 
 /*! \brief The structure of the node handler. */
 struct ast_data_handler {
-	ast_data_read_cb read;
+	ast_data_get_cb get;
+	ast_data_put_cb put;
 };
 
 /*! \brief This entries are for multiple registers. */

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=199225&r1=199224&r2=199225
==============================================================================
--- team/group/data_api_gsoc2009/main/data.c (original)
+++ team/group/data_api_gsoc2009/main/data.c Fri Jun  5 08:27:01 2009
@@ -429,7 +429,7 @@
 }
 
 static const struct ast_data_handler test_provider = {
-	.read = test_data_provider
+	.get = test_data_provider
 };
 
 static const struct ast_data_entry test_providers[] = {




More information about the asterisk-commits mailing list