115 if (!sscanf(
args.index,
"%d", &index)) {
129 if (!strcmp(cur->filename,
args.filename)) {
138 if (!(cur =
ast_calloc(1,
sizeof(*cur) + strlen(
args.filename) + 1))) {
143 strcpy(cur->filename,
args.filename);
161 if (!strcmp(cur->filename,
args.filename)) {
167 if (!(cur =
ast_calloc(1,
sizeof(*cur) + strlen(
args.filename) + 1))) {
172 strcpy(cur->filename,
args.filename);
183 if (strcasecmp(
args.variable, var->
name)) {
198 ast_debug(1,
"'%s' not found at index %d in [%s] of '%s'. Maximum index found: %d\n",
199 args.variable, index,
args.category,
args.filename, ix);
struct ast_variable * next
#define AST_RWLIST_WRLOCK(head)
Write locks a list.
#define AST_STANDARD_APP_ARGS(args, parse)
Performs the 'standard' argument separation process for an application.
#define CONFIG_STATUS_FILEINVALID
#define AST_RWLIST_UNLOCK(head)
Attempts to unlock a read/write based list.
Structure for variables, used for configurations and for channel variables.
#define ast_strlen_zero(foo)
#define AST_RWLIST_RDLOCK(head)
Read locks a list.
struct ast_variable * ast_category_root(struct ast_config *config, char *cat)
returns the root ast_variable of a config
#define ast_debug(level,...)
Log a DEBUG message.
#define ast_config_load(filename, flags)
Load a config file.
#define AST_RWLIST_TRAVERSE
void ast_config_destroy(struct ast_config *config)
Destroys a config.
#define ast_strdupa(s)
duplicate a string in memory from the stack
#define CONFIG_STATUS_FILEUNCHANGED
static int len(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t buflen)
static void parse(struct mgcp_request *req)
#define ast_calloc(num, len)
A wrapper for calloc()
Structure used to handle boolean flags.
#define ast_clear_flag(p, flag)
#define AST_RWLIST_INSERT_TAIL
void ast_copy_string(char *dst, const char *src, size_t size)
Size-limited null-terminating string copy.
#define AST_DECLARE_APP_ARGS(name, arglist)
Declare a structure to hold an application's arguments.
#define AST_APP_ARG(name)
Define an application argument.