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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Aug 5 13:25:17 CDT 2009


Author: eliel
Date: Wed Aug  5 13:25:14 2009
New Revision: 210561

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=210561
Log:
Add more doxygen, and use static const to define a 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=210561&r1=210560&r2=210561
==============================================================================
--- team/group/data_api_gsoc2009/main/data.c (original)
+++ team/group/data_api_gsoc2009/main/data.c Wed Aug  5 13:25:14 2009
@@ -2291,7 +2291,10 @@
 	return 0;
 }
 
-struct {
+/*!
+ * \brief One color for each node type.
+ */
+static const struct {
 	enum ast_data_type type;
 	int color;
 } data_result_color[] = {
@@ -2305,6 +2308,12 @@
 	{ AST_DATA_POINTER, COLOR_YELLOW },
 };
 
+/*!
+ * \internal
+ * \brief Get the color configured for a specific node type.
+ * \param[in] type The node type.
+ * \retval The color specified for the passed type.
+ */
 static int data_result_get_color(enum ast_data_type type)
 {
 	int i;




More information about the asterisk-commits mailing list