summaryrefslogtreecommitdiff
path: root/plugins/!NotAdopted/IMO2sProxy2/src/common/memlist.h
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2013-06-20 10:48:24 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2013-06-20 10:48:24 +0000
commitdc5db1caccc4d8d6a18f7a0aa86b5dc8405b74f8 (patch)
tree50268943d9ad95f801a9536ec80a7e49e8c2ced9 /plugins/!NotAdopted/IMO2sProxy2/src/common/memlist.h
parent802b7df7fb68ccad66eb9b069521a8369eebe6dc (diff)
test
git-svn-id: http://svn.miranda-ng.org/main/trunk@5061 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/!NotAdopted/IMO2sProxy2/src/common/memlist.h')
-rw-r--r--plugins/!NotAdopted/IMO2sProxy2/src/common/memlist.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/plugins/!NotAdopted/IMO2sProxy2/src/common/memlist.h b/plugins/!NotAdopted/IMO2sProxy2/src/common/memlist.h
new file mode 100644
index 0000000000..be37bbb723
--- /dev/null
+++ b/plugins/!NotAdopted/IMO2sProxy2/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