diff options
Diffstat (limited to 'plugins/!NotAdopted/IMO2sProxy2/src/common/fifo.h')
-rw-r--r-- | plugins/!NotAdopted/IMO2sProxy2/src/common/fifo.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/plugins/!NotAdopted/IMO2sProxy2/src/common/fifo.h b/plugins/!NotAdopted/IMO2sProxy2/src/common/fifo.h new file mode 100644 index 0000000000..0ab9f4f469 --- /dev/null +++ b/plugins/!NotAdopted/IMO2sProxy2/src/common/fifo.h @@ -0,0 +1,26 @@ +#ifndef __FIFO_H__
+#define __FIFO_H__
+
+struct _tagFIFO;
+typedef struct _tagFIFO TYP_FIFO;
+
+#ifndef BOOL
+#define BOOL int
+#endif
+#ifndef TRUE
+#define TRUE 1
+#endif
+#ifndef FALSE
+#define FALSE 0
+#endif
+
+TYP_FIFO *Fifo_Init(unsigned int uiCapacity);
+void Fifo_Exit(TYP_FIFO *pstHandle);
+char *Fifo_AllocBuffer(TYP_FIFO *pstHandle, unsigned int uiPCount);
+BOOL Fifo_Add(TYP_FIFO *pstHandle, char *acPBytes, unsigned int uiPCount);
+BOOL Fifo_AddString(TYP_FIFO *pstHandle, char *pszString);
+char *Fifo_Get (TYP_FIFO *pstHandle, unsigned int *uiPCount);
+unsigned int Fifo_Count (TYP_FIFO *pstHandle);
+void Fifo_Reset (TYP_FIFO *hFifo);
+
+#endif
|