summaryrefslogtreecommitdiff
path: root/include/asterisk/sched.h
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2005-08-22 22:55:06 +0000
committerKevin P. Fleming <kpfleming@digium.com>2005-08-22 22:55:06 +0000
commit348029760731d203d4c0651bc948d83c033bec47 (patch)
tree59c342fa106f478400e490e62a78ec9d7358a283 /include/asterisk/sched.h
parentc9287324ea670d70b13757429bae30d3ee3a1400 (diff)
add preliminary support for SIP timers (issue #4359)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6362 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/sched.h')
-rwxr-xr-xinclude/asterisk/sched.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/asterisk/sched.h b/include/asterisk/sched.h
index c64e308b4..3b239d87e 100755
--- a/include/asterisk/sched.h
+++ b/include/asterisk/sched.h
@@ -62,10 +62,27 @@ typedef int (*ast_sched_cb)(void *data);
* Schedule an event to take place at some point in the future. callback
* will be called with data as the argument, when milliseconds into the
* future (approximately)
+ * If callback returns 0, no further events will be re-scheduled
* Returns a schedule item ID on success, -1 on failure
*/
extern int ast_sched_add(struct sched_context *con, int when, ast_sched_cb callback, void *data);
+/*!Adds a scheduled event */
+/*!
+ * \param con Schduler context to add
+ * \param when how many milliseconds to wait for event to occur
+ * \param callback function to call when the amount of time expires
+ * \param data data to pass to the callback
+ * \param variable If true, the result value of callback function will be
+ * used for rescheduling
+ * Schedule an event to take place at some point in the future. callback
+ * will be called with data as the argument, when milliseconds into the
+ * future (approximately)
+ * If callback returns 0, no further events will be re-scheduled
+ * Returns a schedule item ID on success, -1 on failure
+ */
+extern int ast_sched_add_variable(struct sched_context *con, int when, ast_sched_cb callback, void *data, int variable);
+
/*! Deletes a scheduled event */
/*!
* \param con scheduling context to delete item from