summaryrefslogtreecommitdiff
path: root/include/asterisk
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2005-08-27 23:55:14 +0000
committerKevin P. Fleming <kpfleming@digium.com>2005-08-27 23:55:14 +0000
commit99929b21e47fb46df9be68cd3c3bf743e4c1aa83 (patch)
tree605762c7fa3a5ee1b627f5d611d12690568e9271 /include/asterisk
parent601e4bb78a5859c58279a3fcb97cd381c59cceb0 (diff)
preserve hint watchers and laststate across 'extensions reload' (issue #2522)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6431 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk')
-rwxr-xr-xinclude/asterisk/pbx.h24
1 files changed, 15 insertions, 9 deletions
diff --git a/include/asterisk/pbx.h b/include/asterisk/pbx.h
index b0ca14cc0..d54d3ef8e 100755
--- a/include/asterisk/pbx.h
+++ b/include/asterisk/pbx.h
@@ -34,14 +34,20 @@ extern "C" {
#define PRIORITY_HINT -1
/*! Extension states */
-/*! No device INUSE or BUSY */
-#define AST_EXTENSION_NOT_INUSE 0
-/*! One or more devices INUSE */
-#define AST_EXTENSION_INUSE 1
-/*! All devices BUSY */
-#define AST_EXTENSION_BUSY 2
-/*! All devices UNAVAILABLE/UNREGISTERED */
-#define AST_EXTENSION_UNAVAILABLE 3
+enum ast_extension_states {
+ /*! Extension removed */
+ AST_EXTENSION_REMOVED = -2,
+ /*! Extension hint removed */
+ AST_EXTENSION_DEACTIVATED = -1,
+ /*! No device INUSE or BUSY */
+ AST_EXTENSION_NOT_INUSE = 0,
+ /*! One or more devices INUSE */
+ AST_EXTENSION_INUSE = 1,
+ /*! All devices BUSY */
+ AST_EXTENSION_BUSY = 2,
+ /*! All devices UNAVAILABLE/UNREGISTERED */
+ AST_EXTENSION_UNAVAILABLE = 3,
+};
struct ast_context;
struct ast_exten;
@@ -49,7 +55,7 @@ struct ast_include;
struct ast_ignorepat;
struct ast_sw;
-typedef int (*ast_state_cb_type)(char *context, char* id, int state, void *data);
+typedef int (*ast_state_cb_type)(char *context, char* id, enum ast_extension_states state, void *data);
/*! Data structure associated with a custom function */
struct ast_custom_function {