CVS: winex/include winbase.h, 1.37, 1.38 winnt.h, 1.31, 1.32

[email protected]
Newsgroups gmane.comp.emulators.winex.cvs
Message-ID <[email protected]>
Subject: winex/include winbase.h,1.37,1.38 winnt.h,1.31,1.32Update of /var/lib/cvsd/cvsroot/winex/include
In directory agravaine:/tmp/cvs-serv20321/include

Modified Files:
	winbase.h winnt.h 
Log Message:

- integrate SList implementation contributed by Tim Beckmann



Index: winbase.h
===================================================================
RCS file: /var/lib/cvsd/cvsroot/winex/include/winbase.h,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- winbase.h	22 Feb 2007 23:30:08 -0000	1.37
+++ winbase.h	30 Mar 2007 20:41:41 -0000	1.38
@@ -2005,6 +2005,22 @@
 /* If this is not declared, we cannot compile many sources written with C++. */
 int WINAPI WinMain(HINSTANCE,HINSTANCE,LPSTR,int);
 
+
+#if defined(_SLIST_HEADER_) && !defined(_NTOSP_)
+
+VOID WINAPI InitializeSListHead( PSLIST_HEADER ListHead );
+
+PSLIST_ENTRY WINAPI InterlockedPopEntrySList( PSLIST_HEADER ListHead );
+
+PSLIST_ENTRY WINAPI InterlockedPushEntrySList( PSLIST_HEADER ListHead,
+                    PSLIST_ENTRY ListEntry );
+
+PSLIST_ENTRY WINAPI InterlockedFlushSList( PSLIST_HEADER ListHead );
+
+USHORT WINAPI QueryDepthSList( PSLIST_HEADER ListHead );
+
+#endif /* _SLIST_HEADER_ */
+
 #ifdef __cplusplus
 }
 #endif

Index: winnt.h
===================================================================
RCS file: /var/lib/cvsd/cvsroot/winex/include/winnt.h,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- winnt.h	30 Mar 2007 15:56:41 -0000	1.31
+++ winnt.h	30 Mar 2007 20:41:41 -0000	1.32
@@ -4334,4 +4334,38 @@
     ULONG_PTR SpinCount;
 }  RTL_CRITICAL_SECTION, *PRTL_CRITICAL_SECTION;
 
+#ifndef _SLIST_HEADER_
+#define _SLIST_HEADER_
+
+#define SLIST_ENTRY SINGLE_LIST_ENTRY
+#define _SLIST_ENTRY _SINGLE_LIST_ENTRY
+#define PSLIST_ENTRY PSINGLE_LIST_ENTRY
+
+typedef union _SLIST_HEADER
+{
+    ULONGLONG Alignment;
+    struct
+    {
+        SLIST_ENTRY Next;
+        WORD Depth;
+        WORD Sequence;
+    } DUMMYSTRUCTNAME;
+} SLIST_HEADER, *PSLIST_HEADER;
+
+#endif /* _SLIST_HEADER_ */
+
+VOID WINAPI RtlInitializeSListHead( PSLIST_HEADER ListHead );
+
+PSLIST_ENTRY WINAPI RtlInterlockedPopEntrySList( PSLIST_HEADER ListHead );
+
+PSLIST_ENTRY WINAPI RtlInterlockedPushEntrySList(
+    PSLIST_HEADER ListHead,
+    PSLIST_ENTRY ListEntry
+);
+
+PSLIST_ENTRY WINAPI RtlInterlockedFlushSList( PSLIST_HEADER ListHead );
+
+WORD WINAPI RtlQueryDepthSList( PSLIST_HEADER ListHead );
+
+
 #endif  /* __WINE_WINNT_H */
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.