Re: [Mingw-w64-public] [PATCH] Add declaration of `ID2D1Multithread` interface

2017-07-25 Thread Jacek Caban
On 25.07.2017 13:27, Ruslan Garipov wrote:
> Please review.

Looks good to me, committed as cabc42a00dc6417e9284d0b9ec550dbcc82fa4f2.

Thanks,
Jacek

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


[Mingw-w64-public] [PATCH] Add declaration of `ID2D1Multithread` interface

2017-07-25 Thread Ruslan Garipov
This commit declares interface `ID2D1Multithread` missing in mingw-w64's  
'd2d1_1.h', allowing the client code to use "stock" Direct2D factory lock 
when one does an operation on a Direct3D or DXGI surface.


Signed-off-by: ‡Ruslan Garipov 
---
mingw-w64-headers/include/d2d1_1.h | 19 +++
1 file changed, 19 insertions(+)

Please review.
diff --git a/mingw-w64-headers/include/d2d1_1.h 
b/mingw-w64-headers/include/d2d1_1.h
index 2eb398a0f..3e504c2de 100644
--- a/mingw-w64-headers/include/d2d1_1.h
+++ b/mingw-w64-headers/include/d2d1_1.h
@@ -1007,6 +1007,25 @@ typedef interface ID2D1Factory1 ID2D1Factory1;
 DEFINE_GUID(IID_ID2D1Factory1, 
0xbb12d362,0xdaee,0x4b9a,0xaa,0x1d,0x14,0xba,0x40,0x1c,0xfa,0x1f);
 __CRT_UUID_DECL(ID2D1Factory1, 
0xbb12d362,0xdaee,0x4b9a,0xaa,0x1d,0x14,0xba,0x40,0x1c,0xfa,0x1f);
 
+#ifndef D2D_USE_C_DEFINITIONS
+
+interface ID2D1Multithread : public IUnknown
+{
+STDMETHOD_(BOOL, GetMultithreadProtected)() CONST PURE;
+STDMETHOD_(void, Enter)() PURE;
+STDMETHOD_(void, Leave)() PURE;
+};
+
+#else
+
+typedef interface ID2D1Multithread ID2D1Multithread;
+/* FIXME: Add full C declaration */
+
+#endif
+
+DEFINE_GUID(IID_ID2D1Multithread, 
0x31e6e7bc,0xe0ff,0x4d46,0x8c,0x64,0xa0,0xa8,0xc4,0x1c,0x15,0xd3);
+__CRT_UUID_DECL(ID2D1Multithread, 
0x31e6e7bc,0xe0ff,0x4d46,0x8c,0x64,0xa0,0xa8,0xc4,0x1c,0x15,0xd3);
+
 #include 
 
 #endif
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public