summaryrefslogtreecommitdiff
path: root/imo2sproxy/src/common/memlist.h
diff options
context:
space:
mode:
authorwatcherhd <watcherhd@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb>2011-11-17 18:46:23 +0000
committerwatcherhd <watcherhd@e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb>2011-11-17 18:46:23 +0000
commitb880db8491271b4bd4aa87c2dd79b5e3c3dde6cf (patch)
treeb4e7c071826a2c1cc45bd0b253a76764e5194c4e /imo2sproxy/src/common/memlist.h
parent2f10a9e6cc4782d61f0f15bbff36209af922bd34 (diff)
added: ieview, imo2sproxy, skype
git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@175 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb
Diffstat (limited to 'imo2sproxy/src/common/memlist.h')
-rw-r--r--imo2sproxy/src/common/memlist.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/imo2sproxy/src/common/memlist.h b/imo2sproxy/src/common/memlist.h
new file mode 100644
index 0000000..be37bbb
--- /dev/null
+++ b/imo2sproxy/src/common/memlist.h
@@ -0,0 +1,30 @@
+#ifndef __LIST_H__
+#define __LIST_H__
+
+#ifndef BOOL
+#define BOOL int
+#endif
+#ifndef TRUE
+#define TRUE 1
+#endif
+#ifndef FALSE
+#define FALSE 0
+#endif
+
+struct _tagLIST;
+typedef struct _tagLIST TYP_LIST;
+
+TYP_LIST *List_Init(unsigned int uiCapacity);
+void List_Exit(TYP_LIST *pstHandle);
+BOOL List_Push(TYP_LIST *pstHandle, void *pItem);
+void *List_Pop (TYP_LIST *pstHandle);
+BOOL List_ReplaceElementAt(TYP_LIST *pstHandle, void *pItem, unsigned int uiPos);
+BOOL List_InsertElementAt(TYP_LIST *pstHandle, void *pItem, unsigned int uiPos);
+void *List_RemoveElementAt(TYP_LIST *pstHandle, unsigned int uiPos);
+unsigned int List_Count(TYP_LIST *pstHandle);
+void *List_ElementAt(TYP_LIST *pstHandle,unsigned int uiPos);
+void *List_Top(TYP_LIST *pstHandle);
+void List_FreeElements(TYP_LIST *pstHandle);
+void List_Sort(TYP_LIST *pstHandle, int (*pFunc)(const void*,const void*));
+
+#endif