summaryrefslogtreecommitdiff
path: root/plugins/!NotAdopted/IMO2sProxy/src/common/fifo.h
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2012-12-22 21:43:08 +0000
committerKirill Volinsky <mataes2007@gmail.com>2012-12-22 21:43:08 +0000
commit07ddfbd5994267e0f1aba52040a25db90ed8924b (patch)
treee33f1fe629f4e74b4bb31cbdcf41a2c2451bf599 /plugins/!NotAdopted/IMO2sProxy/src/common/fifo.h
parent3c0a624abd362e45502619648670ace62b2efa3e (diff)
IMO2sProxy reverted. maybe will be needed later
git-svn-id: http://svn.miranda-ng.org/main/trunk@2809 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/!NotAdopted/IMO2sProxy/src/common/fifo.h')
-rw-r--r--plugins/!NotAdopted/IMO2sProxy/src/common/fifo.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/plugins/!NotAdopted/IMO2sProxy/src/common/fifo.h b/plugins/!NotAdopted/IMO2sProxy/src/common/fifo.h
new file mode 100644
index 0000000000..0ab9f4f469
--- /dev/null
+++ b/plugins/!NotAdopted/IMO2sProxy/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