Version 0.1.1 from FTP

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@140 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
1999-12-16 22:47:49 +00:00
parent 0ed9477395
commit 86361b6866
5 changed files with 852 additions and 18 deletions

View File

@@ -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);