diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 1999-12-16 22:47:49 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 1999-12-16 22:47:49 +0000 |
commit | 53b26418053e05bd30974b1d336167f90860e85b (patch) | |
tree | f7d4ae6622d7ef5269c3550b673d17aa25f5a925 /include/asterisk/channel.h | |
parent | 509765aef52f3ce306a114832ab885ad85522d2e (diff) |
Version 0.1.1 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@140 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/channel.h')
-rwxr-xr-x | include/asterisk/channel.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h index a5d9c9121..425eb2e30 100755 --- a/include/asterisk/channel.h +++ b/include/asterisk/channel.h @@ -3,7 +3,7 @@ * * General Asterisk channel definitions. * - * Copyright (C) 1999, Adtran Inc. and Linux Support Services, LLC + * Copyright (C) 1999, Mark Spencer * * Mark Spencer <markster@linux-support.net> * @@ -23,7 +23,7 @@ extern "C" { #endif - +#include <pthread.h> #define AST_CHANNEL_NAME 80 #define AST_CHANNEL_MAX_STACK 32 @@ -34,7 +34,10 @@ extern "C" { struct ast_channel { char name[AST_CHANNEL_NAME]; /* ASCII Description of channel name */ pthread_t blocker; /* If anyone is blocking, this is them */ + pthread_mutex_t lock; /* Lock, can be used to lock a channel for some operations */ char *blockproc; /* Procedure causing blocking */ + char *appl; /* Current application */ + char *data; /* Data passed to current application */ int blocking; /* Whether or not we're blocking */ struct sched_context *sched; /* Schedule context */ int streamid; /* For streaming playback, the schedule ID */ @@ -129,6 +132,9 @@ struct ast_frame *ast_read(struct ast_channel *chan); /* Write a frame to a channel */ int ast_write(struct ast_channel *chan, struct ast_frame *frame); +/* Browse the channels currently in use */ +struct ast_channel *ast_channel_walk(struct ast_channel *prev); + /* Wait for a digit. Returns <0 on error, 0 on no entry, and the digit on success. */ char ast_waitfordigit(struct ast_channel *c, int ms); |