[Asterisk-cvs] asterisk/include/asterisk pbx.h,1.32,1.33
markster at lists.digium.com
markster at lists.digium.com
Sat Nov 13 17:43:40 CST 2004
Update of /usr/cvsroot/asterisk/include/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv18261/include/asterisk
Modified Files:
pbx.h
Log Message:
Big agent / queue fixes
Index: pbx.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/pbx.h,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- pbx.h 11 Nov 2004 21:23:45 -0000 1.32
+++ pbx.h 13 Nov 2004 22:44:33 -0000 1.33
@@ -51,6 +51,8 @@
typedef int (*ast_state_cb_type)(char *context, char* id, int state, void *data);
+typedef int (*ast_devstate_cb_type)(const char *dev, int state, void *data);
+
//! Data structure associated with an asterisk switch
struct ast_switch {
/*! NULL */
@@ -262,6 +264,15 @@
int ast_extension_state_add(const char *context, const char *exten,
ast_state_cb_type callback, void *data);
+//! Registers a device state change callback
+/*!
+ * \param data to pass to callback
+ * The callback is called if the state for extension is changed
+ * Return -1 on failure, ID on success
+ */
+int ast_devstate_add(ast_devstate_cb_type callback, void *data);
+void ast_devstate_del(ast_devstate_cb_type callback, void *data);
+
//! Deletes a registered state change callback by ID
/*!
* \param id of the callback to delete
More information about the svn-commits
mailing list