From 9f55bb92598bacb7b38cd30631dbb177a8e6e8c8 Mon Sep 17 00:00:00 2001 From: kpfleming Date: Mon, 22 Aug 2005 22:55:06 +0000 Subject: add preliminary support for SIP timers (issue #4359) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6362 f38db490-d61c-443f-a65b-d21fe96a405b --- include/asterisk/sched.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'include/asterisk/sched.h') 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 -- cgit v1.2.3