00001 //*************************************************************** 00002 // ByteQueue.h 00003 // 00004 //*************************************************************** 00005 00006 #ifndef BYTEQUEUE__H 00007 #define BYTEQUEUE__H 00008 00009 typedef struct { 00010 TCB *task_h; 00011 int nChar; 00012 unsigned Head; 00013 unsigned Tail; 00014 unsigned Size; 00015 char *pBfr; 00016 }BQ; 00017 00018 extern void CreateBQ(BQ *pBQ,char *b,unsigned Size); 00019 extern int BQget(BQ *pBQ); 00020 extern int BQPut(BQ *pBQ,int c); 00021 extern int BQWrite(BQ *pBQ,char *b,int n); 00022 00023 #endif 00024