Commit 76e258cb authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

ntdll: Add prototypes to winnt.h for the SList functions.

parent 102ae714
...@@ -927,7 +927,7 @@ PVOID WINAPI RtlDecodePointer( PVOID ptr ) ...@@ -927,7 +927,7 @@ PVOID WINAPI RtlDecodePointer( PVOID ptr )
return (PVOID)(ptrval ^ get_pointer_obfuscator()); return (PVOID)(ptrval ^ get_pointer_obfuscator());
} }
VOID WINAPI RtlInitializeSListHead(volatile PSLIST_HEADER ListHeader) VOID WINAPI RtlInitializeSListHead(PSLIST_HEADER ListHeader)
{ {
TRACE("(%p)\n", ListHeader); TRACE("(%p)\n", ListHeader);
#ifdef _WIN64 #ifdef _WIN64
...@@ -937,7 +937,7 @@ VOID WINAPI RtlInitializeSListHead(volatile PSLIST_HEADER ListHeader) ...@@ -937,7 +937,7 @@ VOID WINAPI RtlInitializeSListHead(volatile PSLIST_HEADER ListHeader)
#endif #endif
} }
USHORT WINAPI RtlQueryDepthSList(volatile PSLIST_HEADER ListHeader) WORD WINAPI RtlQueryDepthSList(PSLIST_HEADER ListHeader)
{ {
TRACE("(%p)\n", ListHeader); TRACE("(%p)\n", ListHeader);
#ifdef _WIN64 #ifdef _WIN64
...@@ -948,7 +948,7 @@ USHORT WINAPI RtlQueryDepthSList(volatile PSLIST_HEADER ListHeader) ...@@ -948,7 +948,7 @@ USHORT WINAPI RtlQueryDepthSList(volatile PSLIST_HEADER ListHeader)
#endif #endif
} }
PSLIST_ENTRY WINAPI RtlFirstEntrySList(volatile PSLIST_HEADER ListHeader) PSLIST_ENTRY WINAPI RtlFirstEntrySList(const SLIST_HEADER* ListHeader)
{ {
TRACE("(%p)\n", ListHeader); TRACE("(%p)\n", ListHeader);
#ifdef _WIN64 #ifdef _WIN64
...@@ -959,7 +959,7 @@ PSLIST_ENTRY WINAPI RtlFirstEntrySList(volatile PSLIST_HEADER ListHeader) ...@@ -959,7 +959,7 @@ PSLIST_ENTRY WINAPI RtlFirstEntrySList(volatile PSLIST_HEADER ListHeader)
#endif #endif
} }
PSLIST_ENTRY WINAPI RtlInterlockedFlushSList(volatile PSLIST_HEADER ListHeader) PSLIST_ENTRY WINAPI RtlInterlockedFlushSList(PSLIST_HEADER ListHeader)
{ {
SLIST_HEADER oldHeader, newHeader; SLIST_HEADER oldHeader, newHeader;
TRACE("(%p)\n", ListHeader); TRACE("(%p)\n", ListHeader);
...@@ -981,7 +981,7 @@ PSLIST_ENTRY WINAPI RtlInterlockedFlushSList(volatile PSLIST_HEADER ListHeader) ...@@ -981,7 +981,7 @@ PSLIST_ENTRY WINAPI RtlInterlockedFlushSList(volatile PSLIST_HEADER ListHeader)
#endif #endif
} }
PSLIST_ENTRY WINAPI RtlInterlockedPushEntrySList(volatile PSLIST_HEADER ListHeader, PSLIST_ENTRY WINAPI RtlInterlockedPushEntrySList(PSLIST_HEADER ListHeader,
PSLIST_ENTRY ListEntry) PSLIST_ENTRY ListEntry)
{ {
SLIST_HEADER oldHeader, newHeader; SLIST_HEADER oldHeader, newHeader;
...@@ -1004,7 +1004,7 @@ PSLIST_ENTRY WINAPI RtlInterlockedPushEntrySList(volatile PSLIST_HEADER ListHead ...@@ -1004,7 +1004,7 @@ PSLIST_ENTRY WINAPI RtlInterlockedPushEntrySList(volatile PSLIST_HEADER ListHead
#endif #endif
} }
PSLIST_ENTRY WINAPI RtlInterlockedPopEntrySList(volatile PSLIST_HEADER ListHeader) PSLIST_ENTRY WINAPI RtlInterlockedPopEntrySList(PSLIST_HEADER ListHeader)
{ {
SLIST_HEADER oldHeader, newHeader; SLIST_HEADER oldHeader, newHeader;
PSLIST_ENTRY entry; PSLIST_ENTRY entry;
...@@ -1040,7 +1040,7 @@ PSLIST_ENTRY WINAPI RtlInterlockedPopEntrySList(volatile PSLIST_HEADER ListHeade ...@@ -1040,7 +1040,7 @@ PSLIST_ENTRY WINAPI RtlInterlockedPopEntrySList(volatile PSLIST_HEADER ListHeade
/************************************************************************* /*************************************************************************
* RtlInterlockedPushListSList [NTDLL.@] * RtlInterlockedPushListSList [NTDLL.@]
*/ */
PSLIST_ENTRY WINAPI RtlInterlockedPushListSList(volatile PSLIST_HEADER ListHeader, PSLIST_ENTRY WINAPI RtlInterlockedPushListSList(PSLIST_HEADER ListHeader,
PSLIST_ENTRY FirstEntry, PSLIST_ENTRY FirstEntry,
PSLIST_ENTRY LastEntry, PSLIST_ENTRY LastEntry,
ULONG Count) ULONG Count)
......
...@@ -647,6 +647,14 @@ typedef union _SLIST_HEADER { ...@@ -647,6 +647,14 @@ typedef union _SLIST_HEADER {
#endif #endif
PSLIST_ENTRY WINAPI RtlFirstEntrySList(const SLIST_HEADER*);
VOID WINAPI RtlInitializeSListHead(PSLIST_HEADER);
PSLIST_ENTRY WINAPI RtlInterlockedFlushSList(PSLIST_HEADER);
PSLIST_ENTRY WINAPI RtlInterlockedPopEntrySList(PSLIST_HEADER);
PSLIST_ENTRY WINAPI RtlInterlockedPushEntrySList(PSLIST_HEADER, PSLIST_ENTRY);
WORD WINAPI RtlQueryDepthSList(PSLIST_HEADER);
/* Heap flags */ /* Heap flags */
#define HEAP_NO_SERIALIZE 0x00000001 #define HEAP_NO_SERIALIZE 0x00000001
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment