From 57f1c73396a098a4ae9b93db577f7f13d4bf3a74 Mon Sep 17 00:00:00 2001 From: markster Date: Mon, 12 May 2003 04:23:55 +0000 Subject: Use zaptel timers to wake up processes git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1002 f38db490-d61c-443f-a65b-d21fe96a405b --- include/asterisk/channel.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h index c67dd58c4..97f8af91f 100755 --- a/include/asterisk/channel.h +++ b/include/asterisk/channel.h @@ -112,6 +112,9 @@ struct ast_channel { struct ast_filestream *stream; /*! Original writer format */ int oldwriteformat; + + /*! Timing fd */ + int timingfd; /*! State of line -- Don't write directly, use ast_setstate */ @@ -669,6 +672,10 @@ int ast_autoservice_start(struct ast_channel *chan); /*! Stop servicing a channel for us... Returns -1 on error or if channel has been hungup */ int ast_autoservice_stop(struct ast_channel *chan); +/* If built with zaptel optimizations, force a scheduled expiration on the + timer fd */ +int ast_settimeout(struct ast_channel *c, int ms); + /* Misc. functions below */ //! Waits for activity on a group of channels -- cgit v1.2.3