diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-08-22 22:55:06 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-08-22 22:55:06 +0000 |
commit | 9f55bb92598bacb7b38cd30631dbb177a8e6e8c8 (patch) | |
tree | 59c342fa106f478400e490e62a78ec9d7358a283 /include | |
parent | 77ffeda4e8944e678e51dae03cf0b986c31817f8 (diff) |
add preliminary support for SIP timers (issue #4359)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6362 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rwxr-xr-x | include/asterisk/sched.h | 17 |
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 |