Skip to content
Snippets Groups Projects
Commit 14d42609 authored by Russell Bryant's avatar Russell Bryant
Browse files

issue #5709

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7050 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent c3b6ac60
Branches
Tags
No related merge requests found
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
2005-11-10 Russell Bryant <russell@digium.com> 2005-11-10 Russell Bryant <russell@digium.com>
* many files: Change all references to ast_separate_app_args to ast_app_separate_args
* many files in apps/: Clean up some application descriptions. Make sure all descriptions in changed files are wrapped at 80 characters. * many files in apps/: Clean up some application descriptions. Make sure all descriptions in changed files are wrapped at 80 characters.
2005-11-09 Russell Bryant <russell@digium.com> 2005-11-09 Russell Bryant <russell@digium.com>
...@@ -185,7 +186,7 @@ ...@@ -185,7 +186,7 @@
* include/asterisk/channel.h: add parent_channel field * include/asterisk/channel.h: add parent_channel field
* channel.c (__ast_request_and_dial): use parent_channel field to inherit variables into new channel * channel.c (__ast_request_and_dial): use parent_channel field to inherit variables into new channel
* apps/app_cut.c (cut_internal): use ast_separate_app_args() instead of open code (issue #5560) * apps/app_cut.c (cut_internal): use ast_app_separate_args() instead of open code (issue #5560)
* apps/app_mixmonitor.c (launch_monitor_thread): ast_strlen_zero can handle NULL input (issue #5561) * apps/app_mixmonitor.c (launch_monitor_thread): ast_strlen_zero can handle NULL input (issue #5561)
(mixmonitor_exec): same (mixmonitor_exec): same
......
...@@ -93,7 +93,7 @@ static int app_exec(struct ast_channel *chan, void *data) ...@@ -93,7 +93,7 @@ static int app_exec(struct ast_channel *chan, void *data)
return -1; return -1;
} }
if ((argc = ast_separate_app_args(args, '|', argv, sizeof(argv) / sizeof(argv[0])))) { if ((argc = ast_app_separate_args(args, '|', argv, sizeof(argv) / sizeof(argv[0])))) {
dummy = argv[0]; dummy = argv[0];
options = argv[1]; options = argv[1];
ast_parseoptions(app_opts, &flags, opts, options); ast_parseoptions(app_opts, &flags, opts, options);
......
...@@ -295,7 +295,7 @@ you intend to parse the incoming data string. ...@@ -295,7 +295,7 @@ you intend to parse the incoming data string.
- Separating arguments to dialplan applications and functions - Separating arguments to dialplan applications and functions
Use ast_separate_app_args() to separate the arguments to your application Use ast_app_separate_args() to separate the arguments to your application
once you have made a local copy of the string. once you have made a local copy of the string.
- Parsing strings with strsep - Parsing strings with strsep
......
...@@ -190,13 +190,13 @@ int ast_app_group_match_get_count(char *groupmatch, char *category); ...@@ -190,13 +190,13 @@ int ast_app_group_match_get_count(char *groupmatch, char *category);
\param arglist The list of arguments, defined using AST_APP_ARG \param arglist The list of arguments, defined using AST_APP_ARG
This macro defines a structure intended to be used in a call This macro defines a structure intended to be used in a call
to ast_separate_app_args(). The structure includes all the to ast_app_separate_args(). The structure includes all the
arguments specified, plus an argv array that overlays them and an arguments specified, plus an argv array that overlays them and an
argc argument counter. The arguments must be declared using AST_APP_ARG, argc argument counter. The arguments must be declared using AST_APP_ARG,
and they will all be character pointers (strings). and they will all be character pointers (strings).
\note The structure is <b>not</b> initialized, as the call to \note The structure is <b>not</b> initialized, as the call to
ast_separate_app_args() will perform that function before parsing ast_app_separate_args() will perform that function before parsing
the arguments. the arguments.
*/ */
#define AST_DECLARE_APP_ARGS(name, arglist) \ #define AST_DECLARE_APP_ARGS(name, arglist) \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment