diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-08-29 22:03:37 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-08-29 22:03:37 +0000 |
commit | 558f8be1b81fd211756afb3f3814490bfc0763d7 (patch) | |
tree | e6aa0fcc15c7915e5b37a2267d1c36c2c86f0b19 /include | |
parent | 02052f2d90c56c341514e1b0ed5f62c65f9ea142 (diff) |
don't make expression evaluator allocate a memory buffer for each result
to
be returned; use the buffers already present in the PBX for this purpose
update testexpr2/check_expr to allocate buffers for expression
evaluation
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6440 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rwxr-xr-x | include/asterisk/ast_expr.h | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/include/asterisk/ast_expr.h b/include/asterisk/ast_expr.h index 3739acb7e..c5981a204 100755 --- a/include/asterisk/ast_expr.h +++ b/include/asterisk/ast_expr.h @@ -1 +1,25 @@ -extern char *ast_expr (char *arg); +/* + * Asterisk -- A telephony toolkit for Linux. + * + * Copyright (C) 2005, Digium, Inc. + * + * Mark Spencer <markster@digium.com> + * + * This program is free software, distributed under the terms of + * the GNU General Public License Version 2 + */ + +#ifndef _ASTERISK_EXPR_H +#define _ASTERISK_EXPR_H + +#if defined(__cplusplus) || defined(c_plusplus) +extern "C" { +#endif + +int ast_expr(char *expr, char *buf, int length); + +#if defined(__cplusplus) || defined(c_plusplus) +} +#endif + +#endif /* _ASTERISK_EXPR_H */ |