Flush out app stuff, make profiling easier to turn on/off

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5150 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2005-03-05 21:06:26 +00:00
parent 77b8442606
commit 1bb8d52938
6 changed files with 56 additions and 23 deletions

View File

@@ -38,6 +38,7 @@ typedef enum {
AST_ACTION_TRANSFER, /* adata is a string with exten[@context] */
AST_ACTION_WAITOPTION, /* adata is a timeout, or 0 for defaults */
AST_ACTION_NOOP, /* adata is unused */
AST_ACTION_BACKLIST, /* adata is list of files separated by ; allows interruption */
} ast_ivr_action;
struct ast_ivr_option {
@@ -62,6 +63,8 @@ struct ast_ivr_menu {
struct ast_ivr_option *options; /* All options */
};
#define AST_IVR_FLAG_AUTORESTART (1 << 0)
#define AST_IVR_DECLARE_MENU(holder,title,flags,foo...) \
static struct ast_ivr_option __options_##holder[] = foo;\
static struct ast_ivr_menu holder = { title, flags, __options_##holder }