From: Jacek Caban jacek@codeweavers.com
--- include/Makefile.in | 1 + include/fibersapi.h | 38 ++++++++++++++++++++++++++++++++++++++ include/winbase.h | 5 +---- 3 files changed, 40 insertions(+), 4 deletions(-) create mode 100644 include/fibersapi.h
diff --git a/include/Makefile.in b/include/Makefile.in index 2b9e6d14c19..3ade3fa9e6f 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -326,6 +326,7 @@ SOURCES = \ fci.h \ fdi.h \ featurestagingapi.h \ + fibersapi.h \ fileapi.h \ filter.idl \ fltdefs.h \ diff --git a/include/fibersapi.h b/include/fibersapi.h new file mode 100644 index 00000000000..93ce2eb6b4f --- /dev/null +++ b/include/fibersapi.h @@ -0,0 +1,38 @@ +/* + * Copyright (C) the Wine project + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#ifndef _FIBERS_H_ +#define _FIBERS_H_ + +#include <minwindef.h> + +#ifdef __cplusplus +extern "C" { +#endif + +WINBASEAPI DWORD WINAPI FlsAlloc(PFLS_CALLBACK_FUNCTION); +WINBASEAPI BOOL WINAPI FlsFree(DWORD); +WINBASEAPI void *WINAPI FlsGetValue(DWORD); +WINBASEAPI BOOL WINAPI FlsSetValue(DWORD,void*); +WINBASEAPI BOOL WINAPI IsThreadAFiber(void); + +#ifdef __cplusplus +} +#endif + +#endif /* _FIBERS_H_ */ diff --git a/include/winbase.h b/include/winbase.h index 6f609176148..772000be4a1 100644 --- a/include/winbase.h +++ b/include/winbase.h @@ -47,6 +47,7 @@ extern "C" { #include <threadpoolapiset.h> #include <memoryapi.h> #include <realtimeapiset.h> +#include <fibersapi.h>
/* Windows Exit Procedure flag values */ #define WEP_FREE_DLL 0 @@ -2143,10 +2144,6 @@ WINBASEAPI BOOL WINAPI FindNextVolumeMountPointW(HANDLE,LPWSTR,DWORD); #define FindNextVolumeMountPoint WINELIB_NAME_AW(FindNextVolumeMountPoint) WINBASEAPI BOOL WINAPI FindVolumeClose(HANDLE); WINBASEAPI BOOL WINAPI FindVolumeMountPointClose(HANDLE); -WINBASEAPI DWORD WINAPI FlsAlloc(PFLS_CALLBACK_FUNCTION); -WINBASEAPI BOOL WINAPI FlsFree(DWORD); -WINBASEAPI PVOID WINAPI FlsGetValue(DWORD); -WINBASEAPI BOOL WINAPI FlsSetValue(DWORD,PVOID); WINBASEAPI BOOL WINAPI FlushFileBuffers(HANDLE); WINBASEAPI BOOL WINAPI FlushInstructionCache(HANDLE,LPCVOID,SIZE_T); WINBASEAPI VOID WINAPI FlushProcessWriteBuffers(void);