apps/app_selective.c
static struct selective_proc *alloc_profile(const char *fname)
{
	struct selective_proc *f;

	if (!(f = ast_calloc(1, sizeof(*f)))) {
		return NULL;
	}

	ast_mutex_init(&f->lock);
	ast_copy_string(f->name, fname, sizeof(f->name));

	/* initialize these only on allocation, so they're not reset during a reload */
	f->total = 0;

	return f;
}
/*! \brief Allocate and initialize feature processing profile */
\brief Allocate and initialize feature processing profile
\ brief Allocate and initialize feature processing profile
static struct selective_proc *alloc_profile(const char *fname)
{
	struct selective_proc *f;
	if (!(f = ast_calloc(1, sizeof(*f)))) {
		return NULL;
	}
	ast_mutex_init(&f->lock);
	ast_copy_string(f->name, fname, sizeof(f->name));
	f->total = 0;
	return f;
}
static struct selective_proc * alloc_profile ( const char * fname ) { struct selective_proc * f ; if ( ! ( f = ast_calloc ( 1 , sizeof ( * f ) ) ) ) { return NULL ; } ast_mutex_init ( & f -> lock ) ; ast_copy_string ( f -> name , fname , sizeof ( f -> name ) ) ; f -> total = 0 ; return f ; }
\brief Allocate and initialize feature processing profile
\ brief Allocate and initialize feature processing profile
/* initialize these only on allocation, so they're not reset during a reload */