diff options
author | mogorman <mogorman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-01-13 18:30:49 +0000 |
---|---|---|
committer | mogorman <mogorman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-01-13 18:30:49 +0000 |
commit | f94feca2c56f917573ddbfe2138f3cc6bb6e30fa (patch) | |
tree | 12104c60901cd2c3c369da8ba91c5ab84a1a6ed0 /include | |
parent | 5af8c4e9eba73dd65ff9f9b1dd652e125245e99f (diff) |
Made chan_agent code parsing more robust and
implemented new macro code. from 6228.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8064 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/app.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/asterisk/app.h b/include/asterisk/app.h index 4cae463e8..ace498286 100644 --- a/include/asterisk/app.h +++ b/include/asterisk/app.h @@ -229,6 +229,19 @@ int ast_app_group_match_get_count(const char *groupmatch, const char *category); args.argc = ast_app_separate_args(parse, '|', args.argv, (sizeof(args) - sizeof(args.argc)) / sizeof(args.argv[0])) /*! + \brief Performs the 'nonstandard' argument separation process for an application. + \param args An argument structure defined using AST_DECLARE_APP_ARGS + \param parse A modifiable buffer containing the input to be parsed + \param sep A nonstandard separator character + + This function will separate the input string using the nonstandard argument + separator character and fill in the provided structure, including + the argc argument counter field. + */ +#define AST_NONSTANDARD_APP_ARGS(args, parse, sep) \ + args.argc = ast_app_separate_args(parse, sep, args.argv, (sizeof(args) - sizeof(args.argc)) / sizeof(args.argv[0])) + +/*! \brief Separate a string into arguments in an array \param buf The string to be parsed (this must be a writable copy, as it will be modified) \param delim The character to be used to delimit arguments |