39 int name_len = strlen(name) + 1;
40 int value_len = strlen(value) + 1;
42 var =
__ast_calloc(
sizeof(*var) + name_len + value_len,
sizeof(
char),
43 file, lineno,
function);
90 if (!strcmp(name, var->
name)) {
void * __ast_calloc(size_t nmemb, size_t size, const char *file, int lineno, const char *func) attribute_malloc
Asterisk main include file. File version handling, generic pbx functions.
void ast_var_list_destroy(struct varshead *head)
char * ast_var_find(const struct varshead *head, const char *name)
String manipulation functions.
const char * ast_var_name(const struct ast_var_t *var)
const char * ast_var_full_name(const struct ast_var_t *var)
struct varshead * ast_var_list_clone(struct varshead *head)
struct ast_var_t * _ast_var_assign(const char *name, const char *value, const char *file, int lineno, const char *function)
struct varshead * ast_var_list_create(void)
#define AST_LIST_REMOVE_HEAD(head, field)
Removes and returns the head entry from a list.
const char * ast_var_value(const struct ast_var_t *var)
#define AST_LIST_TRAVERSE(head, var, field)
Loops over (traverses) the entries in a list.
#define ast_calloc(num, len)
A wrapper for calloc()
struct ast_var_t::@249 entries
#define ast_var_assign(name, value)
void ast_var_delete(struct ast_var_t *var)
#define AST_LIST_HEAD_INIT_NOLOCK(head)
Initializes a list head structure.
void ast_copy_string(char *dst, const char *src, size_t size)
Size-limited null-terminating string copy.
#define AST_VAR_LIST_TRAVERSE(head, var)
static void AST_VAR_LIST_INSERT_TAIL(struct varshead *head, struct ast_var_t *var)