Re: [Mingw-w64-public] [PATCH] headers: Restore syncing d3d12.idl from Wine again

2023-09-21 Thread Martin Storsjö

On Thu, 21 Sep 2023, Jacek Caban wrote:


On 9/21/23 16:50, LIU Hao wrote:

在 2023-09-20 04:57, Martin Storsjö 写道:

The version of d3d12.idl in vkd3d has been completed further now,
and has been synced back to Wine; restore mingw-w64-headers to
include this header in future syncs from wine.

This synchronizes the d3d12.idl header from Wine from commit
6558611fa2d24447297cb62d168b924c33839c43 (but not the other
few headers that have been updated there since our last sync).

Signed-off-by: Martin Storsjö 
---
  mingw-w64-headers/include/d3d12.idl | 108 
  mingw-w64-headers/wine-import.sh    |   1 +
  2 files changed, 109 insertions(+)


The change for 'wine-import.sh' looks good to me. Should we include 
'd3d12.idl' as well? I think you may do a reimport after updating the 
script, and the IDL will be overwritten anyway.



I think the patch does add d3d12.idl and I think that Martin added d3d12.idl 
diff to show the impact. Anyway, it looks good to me as well.


Thanks; I pushed this one split into two (plus one) - one that just 
updates wine-import.sh, one that resynced from wine (only updating 
d3d12.idl), and one that regenerated d3d12.h.


// Martin

___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


[Mingw-w64-public] [PATCH] headers: Add portabledeviceapi.idl

2023-09-21 Thread Biswapriyo Nath

From 79bb1d9ccc5d21a04c3ae0567436163534a03e4c Mon Sep 17 00:00:00 2001
From: Biswapriyo Nath 
Date: Thu, 21 Sep 2023 16:44:53 +
Subject: [PATCH] headers: Add portabledeviceapi.idl

Required for chromium/components/storage_monitor/portable_device_watcher_win.h

Signed-off-by: Biswapriyo Nath 
---
 mingw-w64-headers/Makefile.am |   1 +
 .../include/portabledeviceapi.idl | 697 ++
 2 files changed, 698 insertions(+)
 create mode 100644 mingw-w64-headers/include/portabledeviceapi.idl

diff --git a/mingw-w64-headers/Makefile.am b/mingw-w64-headers/Makefile.am
index 3190813..3b8dff5 100644
--- a/mingw-w64-headers/Makefile.am
+++ b/mingw-w64-headers/Makefile.am
@@ -200,6 +200,7 @@ IDL_SRCS = \
   include/objidlbase.idl \
   include/oleidl.idl \
   include/optary.idl \
+  include/portabledeviceapi.idl \
   include/portabledevicetypes.idl \
   include/propidl.idl \
   include/propsys.idl \
diff --git a/mingw-w64-headers/include/portabledeviceapi.idl 
b/mingw-w64-headers/include/portabledeviceapi.idl
new file mode 100644
index 000..742c093
--- /dev/null
+++ b/mingw-w64-headers/include/portabledeviceapi.idl
@@ -0,0 +1,697 @@
+/**
+  *This file has no copyright assigned and is placed in the Public Domain.
+  *This file is part of the mingw-w64 runtime package.
+  *No warranty is given; refer to the file DISCLAIMER.PD within this package.
+ */
+
+import "propidl.idl";
+import "wtypes.idl";
+import "portabledevicetypes.idl";
+
+interface IPortableDeviceManager;
+interface IPortableDevice;
+interface IPortableDeviceContent;
+interface IPortableDeviceContent2;
+interface IEnumPortableDeviceObjectIDs;
+interface IPortableDeviceProperties;
+interface IPortableDeviceResources;
+interface IPortableDeviceCapabilities;
+interface IPortableDeviceEventCallback;
+interface IPortableDeviceDataStream;
+interface IPortableDevicePropertiesBulk;
+interface IPortableDevicePropertiesBulkCallback;
+interface IPortableDeviceServiceManager;
+interface IPortableDeviceService;
+interface IPortableDeviceServiceCapabilities;
+interface IPortableDeviceServiceMethods;
+interface IPortableDeviceServiceMethodCallback;
+interface IPortableDeviceDispatchFactory;
+interface IPortableDeviceServiceActivation;
+interface IPortableDeviceServiceOpenCallback;
+
+[
+object,
+uuid(a1567595-4c2f-4574-a6fa-ecef917b9a40),
+pointer_default(unique)
+]
+interface IPortableDeviceManager : IUnknown
+{
+HRESULT GetDevices(
+[in, out, unique] LPWSTR *device_ids,
+[in, out] DWORD *device_ids_count);
+
+HRESULT RefreshDeviceList();
+
+HRESULT GetDeviceFriendlyName(
+[in] LPCWSTR device_id,
+[in, out, unique] WCHAR *device_friendly_name,
+[in, out] DWORD *device_friendly_name_size);
+
+HRESULT GetDeviceDescription(
+[in] LPCWSTR device_id,
+[in, out, unique] WCHAR *device_description,
+[in, out] DWORD *device_description_size);
+
+HRESULT GetDeviceManufacturer(
+[in] LPCWSTR device_id,
+[in, out, unique] WCHAR *device_manufacturer,
+[in, out] DWORD *device_manufacturer_size);
+
+HRESULT GetDeviceProperty(
+[in] LPCWSTR device_id,
+[in] LPCWSTR device_property_name,
+[in, out, unique] BYTE *data,
+[in, out, unique] DWORD *data_size,
+[in, out, unique] DWORD *type);
+
+HRESULT GetPrivateDevices(
+[in, out, unique] LPWSTR *device_ids,
+[in, out] DWORD *device_ids_count);
+}
+
+[
+object,
+uuid(625e2df8-6392-4cf0-9ad1-3cfa5f17775c),
+pointer_default(unique)
+]
+interface IPortableDevice : IUnknown
+{
+HRESULT Open(
+[in] LPCWSTR device_id,
+[in] IPortableDeviceValues *client_info);
+
+HRESULT SendCommand(
+[in] const DWORD flags,
+[in] IPortableDeviceValues *parameters,
+[out] IPortableDeviceValues **results);
+
+HRESULT Content(
+   [out] IPortableDeviceContent **content);
+
+HRESULT Capabilities(
+   [out] IPortableDeviceCapabilities **capabilities);
+
+HRESULT Cancel();
+
+HRESULT Close();
+
+HRESULT Advise(
+[in] const DWORD flags,
+[in] IPortableDeviceEventCallback *callback,
+[in, unique] IPortableDeviceValues *parameters,
+[out] LPWSTR *cookie);
+
+HRESULT Unadvise(
+[in] LPCWSTR cookie);
+
+HRESULT GetPnPDeviceID(
+[out] LPWSTR *device_id);
+}
+
+[
+object,
+uuid(6a96ed84-7c73-4480-9938-bf5af477d426),
+pointer_default(unique)
+]
+interface IPortableDeviceContent : IUnknown
+{
+HRESULT EnumObjects(
+[in] const DWORD flags,
+[in] LPCWSTR parent_object_id,
+[in, unique] IPortableDeviceValues *filter,
+[out] IEnumPortableDeviceObjectIDs **enum_device_object);
+
+HRESULT Properties(
+[out] IPortableDeviceProperties **device_properties);
+
+HRESULT Transfer(
+[out] IPortableDeviceResources **resources);
+
+HRESULT 

Re: [Mingw-w64-public] [PATCH] crt: add xaudio2_9.def

2023-09-21 Thread LIU Hao

在 2023-09-20 01:32, Oleg Tolmatcev 写道:

 From 0a84cce382051d1b15486425f18c3e8a6ddf9b26 Mon Sep 17 00:00:00 2001
From: Oleg Tolmatcev
Date: Tue, 19 Sep 2023 18:31:56 +0200
Subject: [PATCH] crt: add xaudio2_9.def

---
  mingw-w64-crt/lib-common/xaudio2_9.def | 17 +
  mingw-w64-crt/lib32/Makefile.am|  1 +
  mingw-w64-crt/lib32/xaudio2_9.def  | 17 +
  mingw-w64-crt/lib64/Makefile.am|  1 +
  mingw-w64-crt/libarm32/Makefile.am |  1 +
  mingw-w64-crt/libarm64/Makefile.am |  1 +
  6 files changed, 38 insertions(+)
  create mode 100644 mingw-w64-crt/lib-common/xaudio2_9.def
  create mode 100644 mingw-w64-crt/lib32/xaudio2_9.def


Thanks for the patch. Pushed to master now.


--
Best regards,
LIU Hao



OpenPGP_signature
Description: OpenPGP digital signature
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] [PATCH] headers: Add portabledevice.h

2023-09-21 Thread LIU Hao

在 2023-09-19 23:05, Biswapriyo Nath 写道:

 From b8c180b446c4b1ebca8e2e11807d5e936e7b5a17 Mon Sep 17 00:00:00 2001
From: Biswapriyo Nath
Date: Tue, 19 Sep 2023 15:02:12 +
Subject: [PATCH] headers: Add portabledevice.h

Required for chromium/components/storage_monitor/portable_device_watcher_win.cc

Signed-off-by: Biswapriyo Nath
---
  mingw-w64-headers/include/portabledevice.h | 1011 
  1 file changed, 1011 insertions(+)
  create mode 100644 mingw-w64-headers/include/portabledevice.h


Thanks for the patch. Pushed to master now.

--
Best regards,
LIU Hao



OpenPGP_signature
Description: OpenPGP digital signature
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] [PATCH] headers: Restore syncing d3d12.idl from Wine again

2023-09-21 Thread Jacek Caban via Mingw-w64-public

On 9/21/23 16:50, LIU Hao wrote:

在 2023-09-20 04:57, Martin Storsjö 写道:

The version of d3d12.idl in vkd3d has been completed further now,
and has been synced back to Wine; restore mingw-w64-headers to
include this header in future syncs from wine.

This synchronizes the d3d12.idl header from Wine from commit
6558611fa2d24447297cb62d168b924c33839c43 (but not the other
few headers that have been updated there since our last sync).

Signed-off-by: Martin Storsjö 
---
  mingw-w64-headers/include/d3d12.idl | 108 
  mingw-w64-headers/wine-import.sh    |   1 +
  2 files changed, 109 insertions(+)


The change for 'wine-import.sh' looks good to me. Should we include 
'd3d12.idl' as well? I think you may do a reimport after updating the 
script, and the IDL will be overwritten anyway.



I think the patch does add d3d12.idl and I think that Martin added 
d3d12.idl diff to show the impact. Anyway, it looks good to me as well.



Thanks,

Jacek



___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] [PATCH] headers: Restore syncing d3d12.idl from Wine again

2023-09-21 Thread LIU Hao

在 2023-09-20 04:57, Martin Storsjö 写道:

The version of d3d12.idl in vkd3d has been completed further now,
and has been synced back to Wine; restore mingw-w64-headers to
include this header in future syncs from wine.

This synchronizes the d3d12.idl header from Wine from commit
6558611fa2d24447297cb62d168b924c33839c43 (but not the other
few headers that have been updated there since our last sync).

Signed-off-by: Martin Storsjö 
---
  mingw-w64-headers/include/d3d12.idl | 108 
  mingw-w64-headers/wine-import.sh|   1 +
  2 files changed, 109 insertions(+)


The change for 'wine-import.sh' looks good to me. Should we include 'd3d12.idl' as well? I think you 
may do a reimport after updating the script, and the IDL will be overwritten anyway.




--
Best regards,
LIU Hao



OpenPGP_signature
Description: OpenPGP digital signature
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public