ast_expr.h

Go to the documentation of this file.
00001 /*
00002  * Asterisk -- An open source telephony toolkit.
00003  *
00004  * Copyright (C) 1999 - 2005, Digium, Inc.
00005  *
00006  * Mark Spencer <markster@digium.com>
00007  *
00008  * See http://www.asterisk.org for more information about
00009  * the Asterisk project. Please do not directly contact
00010  * any of the maintainers of this project for assistance;
00011  * the project provides a web site, mailing lists and IRC
00012  * channels for your use.
00013  *
00014  * This program is free software, distributed under the terms of
00015  * the GNU General Public License Version 2. See the LICENSE file
00016  * at the top of the source tree.
00017  */
00018 
00019 /*! \file
00020  *  
00021  *      ???????  
00022  * \todo Explain this file!
00023  */
00024 
00025 
00026 #ifndef _ASTERISK_EXPR_H
00027 #define _ASTERISK_EXPR_H
00028 #ifndef STANDALONE
00029 #endif
00030 #if defined(__cplusplus) || defined(c_plusplus)
00031 extern "C" {
00032 #endif
00033 
00034 /*!\brief Evaluate the given expression
00035  * \param expr An expression
00036  * \param buf Result buffer
00037  * \param length Size of the result buffer, in bytes
00038  * \param chan Channel to use for evaluating included dialplan functions, if any
00039  * \return Length of the result string, in bytes
00040  */
00041 int ast_expr(char *expr, char *buf, int length, struct ast_channel *chan);
00042 
00043 /*!\brief Evaluate the given expression
00044  * \param str Dynamic result buffer
00045  * \param maxlen <0 if the size of the buffer should remain constant, >0 if the size of the buffer should expand to that many bytes, maximum, or 0 for unlimited expansion of the result buffer
00046  * \param chan Channel to use for evaluating included dialplan functions, if any
00047  * \param expr An expression
00048  * \return Length of the result string, in bytes
00049  */
00050 int ast_str_expr(struct ast_str **str, ssize_t maxlen, struct ast_channel *chan, char *expr);
00051 
00052 #if defined(__cplusplus) || defined(c_plusplus)
00053 }
00054 #endif
00055 
00056 #endif /* _ASTERISK_EXPR_H */

Generated on Thu Apr 16 06:27:14 2015 for Asterisk - The Open Source Telephony Project by  doxygen 1.5.6