diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-06-26 15:37:01 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-06-26 15:37:01 +0000 |
commit | 5a1f7d897e1381e17edd9cc54271bb4ec2e3a56e (patch) | |
tree | 118582e660d2690096ebef4c51e0bd240a6507e0 /include | |
parent | 6cafe1a2572a8955f9a5f9e270fec7b12046b182 (diff) |
- add get_max_rate timing API call
- change ast_settimeout() to honor max rate in edge cases of file playback
(this will make some warning messages go away at the end of playing back
a file)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@125332 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/timing.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/asterisk/timing.h b/include/asterisk/timing.h index f235e22b8..88f1fc17d 100644 --- a/include/asterisk/timing.h +++ b/include/asterisk/timing.h @@ -72,6 +72,7 @@ struct ast_timing_functions { int (*timer_enable_continuous)(int handle); int (*timer_disable_continuous)(int handle); enum ast_timing_event (*timer_get_event)(int handle); + unsigned int (*timer_get_max_rate)(int handle); }; /*! @@ -175,6 +176,15 @@ int ast_timer_disable_continuous(int handle); */ enum ast_timing_event ast_timer_get_event(int handle); +/*! + * \brief Get maximum rate supported for a timing handle + * + * \arg handle timing fd returned by timer_open() + * + * \return maximum rate supported for timing handle + */ +unsigned int ast_timer_get_max_rate(int handle); + #if defined(__cplusplus) || defined(c_plusplus) } #endif |