int ast_sip_initialize_sorcery_domain_alias(void)
Initialize sorcery with domain alias support.
Asterisk main include file. File version handling, generic pbx functions.
Full structure for sorcery.
Type for a default handler that should do nothing.
#define SIP_SORCERY_DOMAIN_ALIAS_TYPE
static int domain_alias_apply(const struct ast_sorcery *sorcery, void *obj)
Apply handler for domain_alias type.
#define ast_strlen_zero(foo)
#define ast_string_field_init(x, size)
Initialize a field pool and fields.
const char * ast_sorcery_object_get_id(const void *object)
Get the unique identifier of a sorcery object.
#define ast_sorcery_object_register(sorcery, type, alloc, transform, apply)
Register an object type.
#define ast_sorcery_apply_default(sorcery, type, name, data)
#define STRFLDSET(type,...)
Convert a struct and a list of stringfield fields to an argument list of field offsets.
Support for logging to various files, console and syslog Configuration in file logger.conf.
#define ast_sorcery_object_field_register(sorcery, type, name, default_val, opt_type, flags,...)
Register a field within an object.
static struct ast_sorcery * sorcery
const ast_string_field domain
struct ast_sorcery * ast_sip_get_sorcery(void)
Get a pointer to the SIP sorcery structure.
Type for default option handler for stringfields.
static void * domain_alias_alloc(const char *name)
void * ast_sorcery_generic_alloc(size_t size, ao2_destructor_fn destructor)
Allocate a generic sorcery capable object.
#define ast_string_field_free_memory(x)
free all memory - to be called before destroying the object
static void domain_alias_destroy(void *obj)
Sorcery Data Access Layer API.