aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/pbx.h
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-08-27 23:55:14 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-08-27 23:55:14 +0000
commitadd83c2ba650434c514d60324d3143c717f5eccb (patch)
tree605762c7fa3a5ee1b627f5d611d12690568e9271 /include/asterisk/pbx.h
parent758a35b46b3fbba39556b40f2e0bdc3f546299b5 (diff)
preserve hint watchers and laststate across 'extensions reload' (issue #2522)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6431 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/pbx.h')
-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 {