summaryrefslogtreecommitdiff
path: root/include/asterisk/channel.h
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2003-06-29 20:32:26 +0000
committerMark Spencer <markster@digium.com>2003-06-29 20:32:26 +0000
commit40e4cfe458087e09eae984eb4da9c1d0d1cc0463 (patch)
tree860e56e0ecfd14cc8e477185e8c7f1d9ba86efd2 /include/asterisk/channel.h
parent97fc11c24420ec233600d1c1d74ec7096f2539f4 (diff)
Properly implement using zaptel for timing of file playback
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1137 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/channel.h')
-rwxr-xr-xinclude/asterisk/channel.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h
index c7867b144..107e70da4 100755
--- a/include/asterisk/channel.h
+++ b/include/asterisk/channel.h
@@ -125,7 +125,8 @@ struct ast_channel {
/*! Timing fd */
int timingfd;
-
+ int (*timingfunc)(void *data);
+ void *timingdata;
/*! State of line -- Don't write directly, use ast_setstate */
int _state;
@@ -695,8 +696,8 @@ int ast_autoservice_start(struct ast_channel *chan);
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);
+ timer fd, at which point we call the callback function / data */
+int ast_settimeout(struct ast_channel *c, int samples, int (*func)(void *data), void *data);
/* Transfer a channel (if supported). Returns -1 on error, 0 if not supported
and 1 if supported and requested */