apps/app_selective.c
static char *handle_show_general(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
{
#define FORMAT  "%-32s : %s\n"
#define FORMAT2 "%-32s : %f\n"

	switch(cmd) {
	case CLI_INIT:
		e->command = "selective show general";
		e->usage =
			"Usage: selective show general\n"
			"       Displays information about a selective feature profile.\n";
		return NULL;
	case CLI_GENERATE:
		return NULL;
	}

	if (a->argc != 3) {
		return CLI_SHOWUSAGE;
	}

	ast_cli(a->fd, FORMAT, "Brief Wait", brief_wait);
	ast_cli(a->fd, FORMAT, "Short Wait", short_wait);
	ast_cli(a->fd, FORMAT, "Main Wait", main_wait);
	ast_cli(a->fd, FORMAT, "Medium Wait", med_wait);
	ast_cli(a->fd, FORMAT, "Long Wait", long_wait);

	return CLI_SUCCESS;
#undef FORMAT
#undef FORMAT2
}
/*! \brief CLI command to dump selective feature general config */
\brief CLI command to dump selective feature general config
\ brief CLI command to dump selective feature general config
static char *handle_show_general(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a)
{
#define FORMAT  "%-32s : %s\n"
#define FORMAT2 "%-32s : %f\n"
	switch(cmd) {
	case CLI_INIT:
		e->command = "selective show general";
		e->usage =
			"Usage: selective show general\n"
			"       Displays information about a selective feature profile.\n";
		return NULL;
	case CLI_GENERATE:
		return NULL;
	}
	if (a->argc != 3) {
		return CLI_SHOWUSAGE;
	}
	ast_cli(a->fd, FORMAT, "Brief Wait", brief_wait);
	ast_cli(a->fd, FORMAT, "Short Wait", short_wait);
	ast_cli(a->fd, FORMAT, "Main Wait", main_wait);
	ast_cli(a->fd, FORMAT, "Medium Wait", med_wait);
	ast_cli(a->fd, FORMAT, "Long Wait", long_wait);
	return CLI_SUCCESS;
#undef FORMAT
#undef FORMAT2
}
static char * handle_show_general ( struct ast_cli_entry * e , int cmd , struct ast_cli_args * a ) { #define FORMAT   "%-32s : %s\n" #define FORMAT2  "%-32s : %f\n" switch ( cmd ) { case CLI_INIT : e -> command = " " ; e -> usage = " \n " " \n " ; return NULL ; case CLI_GENERATE : return NULL ; } if ( a -> argc != 3 ) { return CLI_SHOWUSAGE ; } ast_cli ( a -> fd , FORMAT , " " , brief_wait ) ; ast_cli ( a -> fd , FORMAT , " " , short_wait ) ; ast_cli ( a -> fd , FORMAT , " " , main_wait ) ; ast_cli ( a -> fd , FORMAT , " " , med_wait ) ; ast_cli ( a -> fd , FORMAT , " " , long_wait ) ; return CLI_SUCCESS ; #undef  FORMAT #undef  FORMAT2 }
\brief CLI command to dump selective feature general config
\ brief CLI command to dump selective feature general config