libisdn
|
Go to the source code of this file.
Data Structures | |
struct | _mindex |
struct | MFIFO |
Typedefs | |
typedef struct _mindex | MINDEX |
Functions | |
int | MFIFOCreate (unsigned char *buf, int size, int index) |
void | MFIFOClear (unsigned char *buf) |
int | MFIFOGetLBOffset (unsigned char *buf) |
int | MFIFOGetFBOffset (unsigned char *buf) |
void | MFIFOWriteIX (unsigned char *buf, unsigned char *mes, int size, int ix, int off) |
int | MFIFOWriteMes (unsigned char *buf, unsigned char *mes, int size) |
unsigned char * | MFIFOGetMesPtr (unsigned char *buf, int *size) |
void | MFIFOKillNext (unsigned char *buf) |
unsigned char * | MFIFOGetMesPtrOffset (unsigned char *buf, int *size, const int pos) |
Get pointer to and size of message at position x. | |
int | MFIFOGetMesCount (unsigned char *buf) |
How many messages are currently in the buffer? | |
int | MFIFOWriteMesOverwrite (unsigned char *buf, unsigned char *mes, int size) |
Same as MFIFOWriteMes but old frames will be overwritten if the fifo is full. |
void MFIFOClear | ( | unsigned char * | buf | ) |
Definition at line 112 of file mfifo.c.
References MFIFO::first, and MFIFO::last.
Referenced by Q921Establish(), Q921Release(), Q921Rx32(), and Q921Stop().
int MFIFOCreate | ( | unsigned char * | buf, |
int | size, | ||
int | index | ||
) |
Definition at line 85 of file mfifo.c.
References MFIFO::bsize, MFIFO::buf, MFIFO::first, MFIFO::ixsize, and MFIFO::last.
Referenced by Q921_InitTrunk(), and Q921Start().
int MFIFOGetFBOffset | ( | unsigned char * | buf | ) |
Definition at line 153 of file mfifo.c.
References MFIFO::first, MFIFO::ix, MFIFO::ixsize, MFIFO::last, _mindex::offset, and _mindex::size.
Referenced by MFIFOWriteMes(), and MFIFOWriteMesOverwrite().
int MFIFOGetLBOffset | ( | unsigned char * | buf | ) |
Definition at line 130 of file mfifo.c.
References MFIFO::first, MFIFO::ix, MFIFO::last, and _mindex::offset.
Referenced by MFIFOWriteMes(), and MFIFOWriteMesOverwrite().
int MFIFOGetMesCount | ( | unsigned char * | buf | ) |
How many messages are currently in the buffer?
MFIFOGetMesCount
Definition at line 338 of file mfifo.c.
References MFIFO::first, MFIFO::ixsize, and MFIFO::last.
unsigned char* MFIFOGetMesPtr | ( | unsigned char * | buf, |
int * | size | ||
) |
Definition at line 264 of file mfifo.c.
References MFIFO::buf, MFIFO::first, MFIFO::ix, MFIFO::last, _mindex::offset, and _mindex::size.
Referenced by Q921Rx12().
unsigned char* MFIFOGetMesPtrOffset | ( | unsigned char * | buf, |
int * | size, | ||
const int | pos | ||
) |
Get pointer to and size of message at position x.
MFIFOGetMesPtrOffset
Definition at line 311 of file mfifo.c.
References MFIFO::buf, MFIFO::first, MFIFO::ix, MFIFO::ixsize, MFIFO::last, _mindex::offset, and _mindex::size.
void MFIFOKillNext | ( | unsigned char * | buf | ) |
Definition at line 287 of file mfifo.c.
References MFIFO::first, MFIFO::ixsize, and MFIFO::last.
Referenced by Q921Rx12().
void MFIFOWriteIX | ( | unsigned char * | buf, |
unsigned char * | mes, | ||
int | size, | ||
int | ix, | ||
int | off | ||
) |
Definition at line 186 of file mfifo.c.
References MFIFO::buf, MFIFO::first, MFIFO::ix, MFIFO::ixsize, _mindex::offset, and _mindex::size.
Referenced by MFIFOWriteMes(), and MFIFOWriteMesOverwrite().
int MFIFOWriteMes | ( | unsigned char * | buf, |
unsigned char * | mes, | ||
int | size | ||
) |
Definition at line 214 of file mfifo.c.
References MFIFO::bsize, MFIFO::first, MFIFO::ixsize, MFIFO::last, MFIFOGetFBOffset(), MFIFOGetLBOffset(), and MFIFOWriteIX().
Referenced by Q921QueueHDLCFrame().
int MFIFOWriteMesOverwrite | ( | unsigned char * | buf, |
unsigned char * | mes, | ||
int | size | ||
) |
Same as MFIFOWriteMes but old frames will be overwritten if the fifo is full.
MFIFOWriteMesOverwrite
Definition at line 357 of file mfifo.c.
References MFIFO::bsize, MFIFO::first, MFIFO::ixsize, MFIFO::last, MFIFOGetFBOffset(), MFIFOGetLBOffset(), and MFIFOWriteIX().