44 #define YFIFO_USE_MUTEX 49 #if defined(WINDOWS_API) && defined(YFIFO_USE_MUTEX) 50 #if defined(__BORLANDC__) 65 #ifdef YFIFO_USE_MUTEX 76 #define YFIFOEND(fifobuf) ((fifobuf)->buff + (fifobuf)->buffsize) 81 #define yFifoInit(fifo,buffer,len) yFifoInitEx(__FILE_ID__,__LINE__,fifo,buffer,len); 84 #define yFifoInit(fifo,buffer,len) yFifoInitEx(fifo,buffer,len); 88 #define yFifoCleanup(fifo) memset(fifo, 0, sizeof(yFifoBuf)) 99 u16
ySeekFifoEx(
yFifoBuf *buf,
const u8* pattern, u16 patlen, u16 startofs, u16 searchlen, u8 bTextCompare);
104 #ifdef YFIFO_USE_MUTEX 115 u16
ySeekFifo(
yFifoBuf *buf,
const u8* pattern, u16 patlen, u16 startofs, u16 searchlen, u8 bTextCompare);
121 #define yFifoEnterCS(buf) 122 #define yFifoLeaveCS(buf) 123 #define yFifoEmpty(buf) yFifoEmptyEx(buf) 124 #define yPushFifo(buf,data, datalen) yPushFifoEx(buf,data,datalen) 125 #define yPopFifo(buf, data, datalen) yPopFifoEx(buf,data,datalen) 126 #define yPeekFifo(buf, data, datalen, startofs) yPeekFifoEx(buf,data,datalen,startofs) 127 #define yPeekContinuousFifo(buf,ptr,startofs) yPeekContinuousFifoEx(buf,ptr,startofs) 128 #define ySeekFifo(buf, pattern, patlen, startofs, searchlen, bTextCompare) ySeekFifoEx(buf,pattern,patlen,startofs,searchlen,bTextCompare) 129 #define yFifoGetUsed(buf) yFifoGetUsedEx(buf) 130 #define yFifoGetFree(buf) yFifoGetFreeEx(buf) 134 void yxtoa(u32 x,
char *buf, u16 len);
u16 yPushFifoEx(yFifoBuf *buf, const u8 *data, u16 datalen)
void yFifoCleanup(yFifoBuf *buf)
u16 yPopFifoEx(yFifoBuf *buf, u8 *data, u16 datalen)
u16 yFifoGetUsed(yFifoBuf *buf)
u16 yFifoGetFree(yFifoBuf *buf)
void yFifoEnterCS(yFifoBuf *buf)
u16 yPeekContinuousFifoEx(yFifoBuf *buf, u8 **ptr, u16 startofs)
u16 yFifoGetFreeEx(yFifoBuf *buf)
void yFifoEmptyEx(yFifoBuf *buf)
void decodePubVal(Notification_funydx funInfo, const char *funcval, char *buffer)
u16 yPopFifo(yFifoBuf *buf, u8 *data, u16 datalen)
void yFifoInitEx(yFifoBuf *buf, u8 *buffer, u16 bufflen)
void yFifoLeaveCS(yFifoBuf *buf)
void yFifoEmpty(yFifoBuf *buf)
u16 yPushFifo(yFifoBuf *buf, const u8 *data, u16 datalen)
u16 yPeekFifoEx(yFifoBuf *buf, u8 *data, u16 datalen, u16 startofs)
u16 yPeekFifo(yFifoBuf *buf, u8 *data, u16 datalen, u16 startofs)
u16 ySeekFifo(yFifoBuf *buf, const u8 *pattern, u16 patlen, u16 startofs, u16 searchlen, u8 bTextCompare)
u16 yFifoGetUsedEx(yFifoBuf *buf)
u16 ySeekFifoEx(yFifoBuf *buf, const u8 *pattern, u16 patlen, u16 startofs, u16 searchlen, u8 bTextCompare)
void yxtoa(u32 x, char *buf, u16 len)
u16 yPeekContinuousFifo(yFifoBuf *buf, u8 **ptr, u16 startofs)
u16 yForceFifo(yFifoBuf *buf, const u8 *data, u16 datalen, u32 *absCounter)