mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Asterisk data retrieval API.
This module implements an abstraction for retrieving and exporting asterisk data. Developed by: Brett Bryant <brettbryant@gmail.com> Eliel C. Sardanons (LU1ALY) <eliels@gmail.com> For the Google Summer of code 2009 Project. Documentation can be found in doxygen format and inside the header include/asterisk/data.h Review: https://reviewboard.asterisk.org/r/275/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@258517 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -148,6 +148,7 @@ extern "C" {
|
||||
#include "asterisk/linkedlists.h"
|
||||
#include "asterisk/stringfields.h"
|
||||
#include "asterisk/datastore.h"
|
||||
#include "asterisk/data.h"
|
||||
#include "asterisk/channelstate.h"
|
||||
#include "asterisk/ccss.h"
|
||||
|
||||
@@ -2758,6 +2759,26 @@ void ast_channel_queue_redirecting_update(struct ast_channel *chan, const struct
|
||||
*/
|
||||
int ast_channel_connected_line_macro(struct ast_channel *autoservice_chan, struct ast_channel *macro_chan, const void *connected_info, int caller, int frame);
|
||||
|
||||
/*!
|
||||
* \brief Insert into an astdata tree, the channel structure.
|
||||
* \param[in] tree The ast data tree.
|
||||
* \param[in] chan The channel structure to add to tree.
|
||||
* \retval <0 on error.
|
||||
* \retval 0 on success.
|
||||
*/
|
||||
int ast_channel_data_add_structure(struct ast_data *tree, struct ast_channel *chan);
|
||||
|
||||
/*!
|
||||
* \brief Compare to channel structures using the data api.
|
||||
* \param[in] tree The search tree generated by the data api.
|
||||
* \param[in] chan The channel to compare.
|
||||
* \param[in] structure_name The name of the node of the channel structure.
|
||||
* \retval 0 The structure matches.
|
||||
* \retval 1 The structure doesn't matches.
|
||||
*/
|
||||
int ast_channel_data_cmp_structure(const struct ast_data_search *tree, struct ast_channel *chan,
|
||||
const char *structure_name);
|
||||
|
||||
#include "asterisk/ccss.h"
|
||||
|
||||
/*!
|
||||
|
Reference in New Issue
Block a user