summaryrefslogtreecommitdiff
path: root/protocols/SkypeClassic/src/memlist.h
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2013-10-29 08:47:48 +0000
committerRobert Pösel <robyer@seznam.cz>2013-10-29 08:47:48 +0000
commit50421b7809c47bd95c59b4a5627e2f89c8bccfa5 (patch)
tree323784b1c0bb7c86e5df509aab310fa1404680ef /protocols/SkypeClassic/src/memlist.h
parent8604516498f9135ac1c4379488228d84e69a89ab (diff)
SkypeClassic: Folders structure and project cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@6668 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeClassic/src/memlist.h')
-rw-r--r--protocols/SkypeClassic/src/memlist.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/protocols/SkypeClassic/src/memlist.h b/protocols/SkypeClassic/src/memlist.h
new file mode 100644
index 0000000000..7c147d37eb
--- /dev/null
+++ b/protocols/SkypeClassic/src/memlist.h
@@ -0,0 +1,43 @@
+#ifndef __MEMLIST_H__
+#define __MEMLIST_H__
+
+// Optional for programs linked against CRT:
+// Remove this if you want a proper plain WIN32-App
+//#include <stdlib.h>
+
+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_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);
+BOOL List_BinarySearch(TYP_LIST *hPList,
+ int (*pPFunc)(const void *pstPElement,const void *pstPToFind),
+ const void *pstPToFind,int *piPToInsert);
+BOOL List_InsertSort(TYP_LIST *hPList,
+ int (*pPFunc)(const void *pstPElement,const void *pstPToFind),
+ void *pItem);
+
+//#ifdef _INC_STDLIB
+void List_Sort(TYP_LIST *pstHandle, int (*pFunc)(const void*,const void*));
+/*#else
+#undef RtlMoveMemory
+NTSYSAPI
+VOID
+NTAPI
+RtlMoveMemory (
+ VOID UNALIGNED *Destination,
+ CONST VOID UNALIGNED *Source,
+ SIZE_T Length
+ );
+
+#endif*/
+
+#endif \ No newline at end of file