summaryrefslogtreecommitdiff
path: root/plugins/IMO2sProxy/src/common/fifo.h
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2012-07-21 10:11:53 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2012-07-21 10:11:53 +0000
commitc80bc292b555c6666930790c399f6fac6226c468 (patch)
tree83a5cf2be27d2751f668ab1ef1ec051b8053d3df /plugins/IMO2sProxy/src/common/fifo.h
parentc11a4fe35d96f7f118a7286292bc33971180972b (diff)
Skype and IMO2sProxy added, not adapted yet
git-svn-id: http://svn.miranda-ng.org/main/trunk@1091 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/IMO2sProxy/src/common/fifo.h')
-rw-r--r--plugins/IMO2sProxy/src/common/fifo.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/plugins/IMO2sProxy/src/common/fifo.h b/plugins/IMO2sProxy/src/common/fifo.h
new file mode 100644
index 0000000000..0ab9f4f469
--- /dev/null
+++ b/plugins/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