mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-06 13:07:21 +00:00
Made chan_agent code parsing more robust and
implemented new macro code. from 6228. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@8064 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -228,6 +228,19 @@ int ast_app_group_match_get_count(const char *groupmatch, const char *category);
|
||||
#define AST_STANDARD_APP_ARGS(args, parse) \
|
||||
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)
|
||||
|
Reference in New Issue
Block a user