48 const
char *ast_get_switch_name(const struct
ast_sw *sw)
50 return sw ? sw->name : NULL;
53 const char *ast_get_switch_data(
const struct ast_sw *sw)
55 return sw ? sw->
data : NULL;
58 int ast_get_switch_eval(
const struct ast_sw *sw)
63 const char *ast_get_switch_registrar(
const struct ast_sw *sw)
68 struct ast_sw *sw_alloc(
const char *value,
const char *data,
int eval,
const char *registrar)
77 length =
sizeof(
struct ast_sw);
78 length += strlen(value) + 1;
79 length += strlen(data) + 1;
91 p += strlen(value) + 1;
101 void sw_free(
struct ast_sw *sw)
Asterisk main include file. File version handling, generic pbx functions.
Private include file for pbx.
ast_sw: Switch statement in extensions.conf
Core PBX routines and definitions.
#define AST_LIST_ENTRY(type)
Declare a forward link structure inside a list entry.
#define ast_calloc(num, len)
A wrapper for calloc()
Prototypes for public functions only of internal interest,.