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

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


Author: eliel
Date: Fri Jun  5 15:08:04 2009
New Revision: 199288

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=199288
Log:
Specify data retrieve functions.

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

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=199288&r1=199287&r2=199288
==============================================================================
--- team/group/data_api_gsoc2009/include/asterisk/data.h (original)
+++ team/group/data_api_gsoc2009/include/asterisk/data.h Fri Jun  5 15:08:04 2009
@@ -193,6 +193,36 @@
  */
 struct ast_data *ast_data_iterator_next(struct ast_data_iterator *iterator);
 
+/*!
+ * \brief Retrieve an integer from a node in the tree.
+ * \param[in] tree The structure returned by a call to ast_data_get.
+ * \param[in] path The path to the node.
+ * \param[out] value The node content.
+ * \retval 0 on success.
+ * \retval < 0 on error.
+ */
+int ast_data_retrieve_int(struct ast_data *tree, const char *path, const int *value);
+
+/*!
+ * \brief Retrieve an ast_ string from a node in the tree.
+ * \param[in] tree A pointer to the tree structure returned by a call to ast_data_get.
+ * \param[in] path The path to the string node.
+ * \param[out] value The node content.
+ * \retval 0 on success.
+ * \retval < 0 on error.
+ */
+int ast_data_retrieve_str(struct ast_data *tree, const char *path, const struct ast_str **value);
+
+/*!
+ * \brief Retrieve the boolean value of a node.
+ * \param[in] tree The pointer to the tree structure returned by a call to ast_data_get.
+ * \param[in] path The path to the boolean node.
+ * \param[out] value The node content.
+ * \retval 0 on success.
+ * \retval < 0 on error.
+ */
+int ast_data_retrieve_bool(struct ast_data *tree, const char *path, const char *value);
+
 #if defined(__cplusplus) || defined(c_plusplus)
 }
 #endif




More information about the asterisk-commits mailing list