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