summaryrefslogtreecommitdiff
path: root/include/asterisk/devicestate.h
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2005-10-17 15:41:55 +0000
committerMark Spencer <markster@digium.com>2005-10-17 15:41:55 +0000
commit7e890dd49c2c81424c9f475ef4bf3ff522e42f5e (patch)
treef9fd3105f5cc9a16da23695ab3828ff1527d95fb /include/asterisk/devicestate.h
parent7a59bc42c844677a3efb3f0055d7c0ad99c01607 (diff)
Handle device state changes properly when formatting characters are present (bug #5450, new patch)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6806 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/devicestate.h')
-rwxr-xr-xinclude/asterisk/devicestate.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/asterisk/devicestate.h b/include/asterisk/devicestate.h
index 687e6819f..ec8c6620b 100755
--- a/include/asterisk/devicestate.h
+++ b/include/asterisk/devicestate.h
@@ -79,6 +79,16 @@ int ast_device_state(const char *device);
int ast_device_state_changed(const char *fmt, ...)
__attribute__ ((format (printf, 1, 2)));
+
+/*! Tells Asterisk the State for Device is changed */
+/*!
+ * \param device devicename like a dialstrin
+ * Asterisk polls the new extensionstates and calls the registered
+ * callbacks for the changed extensions
+ * Returns 0 on success, -1 on failure
+ */
+int ast_device_state_changed_literal(const char *device);
+
/*! Registers a device state change callback */
/*!
* \param data to pass to callback