diff options
author | Russell Bryant <russell@russellbryant.com> | 2008-06-13 12:45:50 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2008-06-13 12:45:50 +0000 |
commit | b6457ecf4c95b5fe148afdac555e9b198e666c23 (patch) | |
tree | 857ccefe1322ae0e28d63bf209482b762087b97d /include/asterisk/channel.h | |
parent | a68a160b75f8fc2fcdb004e9e9ba28b71de77d5e (diff) |
Merge changes from timing branch
- Convert chan_iax2 to use the timing API
- Convert usage of timing in the core to use the timing API instead of
using DAHDI directly
- Make a change to the timing API to add the set_rate() function
- change the timing core to use a rwlock
- merge a timing implementation, res_timing_dahdi
Basic testing was successful using res_timing_dahdi
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@122523 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/channel.h')
-rw-r--r-- | include/asterisk/channel.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h index 1aa4a083e..07282d05a 100644 --- a/include/asterisk/channel.h +++ b/include/asterisk/channel.h @@ -1423,9 +1423,17 @@ int ast_autoservice_start(struct ast_channel *chan); */ int ast_autoservice_stop(struct ast_channel *chan); -/* If built with dahdi optimizations, force a scheduled expiration on the - timer fd, at which point we call the callback function / data */ -int ast_settimeout(struct ast_channel *c, int samples, int (*func)(const void *data), void *data); +/*! + * \brief Enable or disable timer ticks for a channel + * + * \arg rate number of timer ticks per second + * + * If timers are supported, force a scheduled expiration on the + * timer fd, at which point we call the callback function / data + * + * Call this function with a rate of 0 to turn off the timer ticks + */ +int ast_settimeout(struct ast_channel *c, unsigned int rate, int (*func)(const void *data), void *data); /*! \brief Transfer a channel (if supported). Returns -1 on error, 0 if not supported and 1 if supported and requested |