From: Russell Bryant Date: Fri, 17 Mar 2006 21:39:36 +0000 (+0000) Subject: move the definition of the mappings between extension states and their text X-Git-Tag: 1.4.0-beta1~2405 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0838e30076df0b0225e3c7f56e3139e46e969429;p=thirdparty%2Fasterisk.git move the definition of the mappings between extension states and their text representation into pbx.c so that every file that includes pbx.h does not unnecessarily get a copy of it git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@13357 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/include/asterisk/pbx.h b/include/asterisk/pbx.h index 83997b48d6..9fa5655a07 100644 --- a/include/asterisk/pbx.h +++ b/include/asterisk/pbx.h @@ -62,18 +62,6 @@ enum ast_extension_states { }; -static const struct cfextension_states { - int extension_state; - const char * const text; -} extension_states[] = { - { AST_EXTENSION_NOT_INUSE, "Idle" }, - { AST_EXTENSION_INUSE, "InUse" }, - { AST_EXTENSION_BUSY, "Busy" }, - { AST_EXTENSION_UNAVAILABLE, "Unavailable" }, - { AST_EXTENSION_RINGING, "Ringing" }, - { AST_EXTENSION_INUSE | AST_EXTENSION_RINGING, "InUse&Ringing" } -}; - struct ast_context; struct ast_exten; struct ast_include; diff --git a/pbx.c b/pbx.c index eca359cc74..b355abe044 100644 --- a/pbx.c +++ b/pbx.c @@ -196,6 +196,18 @@ struct ast_hint { AST_LIST_ENTRY(ast_hint) list; /*!< Pointer to next hint in list */ }; +static const struct cfextension_states { + int extension_state; + const char * const text; +} extension_states[] = { + { AST_EXTENSION_NOT_INUSE, "Idle" }, + { AST_EXTENSION_INUSE, "InUse" }, + { AST_EXTENSION_BUSY, "Busy" }, + { AST_EXTENSION_UNAVAILABLE, "Unavailable" }, + { AST_EXTENSION_RINGING, "Ringing" }, + { AST_EXTENSION_INUSE | AST_EXTENSION_RINGING, "InUse&Ringing" } +}; + int ast_pbx_outgoing_cdr_failed(void); static int pbx_builtin_answer(struct ast_channel *, void *);