87 int found, field_number = 1, ix,
method;
88 char *separator =
",";
135 if (strcmp(
args.method,
"concat") == 0) {
140 separator =
args.method_arg;
143 }
else if (strcmp(
args.method,
"single") == 0) {
146 if (sscanf(
args.method_arg,
"%30d", &field_number) <= 0 || field_number <= 0 ) {
175 for (it_change_set = change_set; it_change_set; it_change_set = it_change_set->
next) {
177 if (method == CONCAT && strcmp(it_change_set->
name,
args.field_name) == 0) {
183 if (method == SINGLE && strcmp(it_change_set->
name,
args.field_name) == 0 && ix++ == field_number) {
196 if (method == CONCAT) {
struct ast_variable * next
void ast_variables_destroy(struct ast_variable *var)
Free variable list.
#define AST_STANDARD_APP_ARGS(args, parse)
Performs the 'standard' argument separation process for an application.
Structure for variables, used for configurations and for channel variables.
Full structure for sorcery.
int ast_str_append(struct ast_str **buf, ssize_t max_len, const char *fmt,...)
Append to a thread local dynamic string.
static struct @481 methods[]
char * ast_str_truncate(struct ast_str *buf, ssize_t len)
Truncates the enclosed string to the given length.
#define ast_strlen_zero(foo)
void * ast_sorcery_retrieve_by_id(const struct ast_sorcery *sorcery, const char *type, const char *id)
Retrieve an object using its unique identifier.
#define ast_sorcery_unref(sorcery)
Decrease the reference count of a sorcery structure.
int ast_str_set(struct ast_str **buf, ssize_t max_len, const char *fmt,...)
Set a dynamic string using variable arguments.
#define RAII_VAR(vartype, varname, initval, dtor)
Declare a variable that will call a destructor function when it goes out of scope.
#define ast_strdupa(s)
duplicate a string in memory from the stack
static int len(struct ast_channel *chan, const char *cmd, char *data, char *buf, size_t buflen)
#define ast_sorcery_objectset_create(sorcery, object)
Create an object set (KVP list) for an object.
static struct ast_sorcery * sorcery
#define AST_DECLARE_APP_ARGS(name, arglist)
Declare a structure to hold an application's arguments.
struct ast_sorcery * ast_sorcery_retrieve_by_module_name(const char *module)
Retrieves an existing sorcery instance by module name.
#define AST_APP_ARG(name)
Define an application argument.