summaryrefslogtreecommitdiff
path: root/include/asterisk/timing.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asterisk/timing.h')
-rw-r--r--include/asterisk/timing.h10
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