20 Aug
2024
20 Aug
'24
5:57 p.m.
Elizabeth Figura (@zfigura) commented about include/wine/plugplay.idl:
import "wtypes.idl";
+typedef enum _broadcast_device_type +{ + /* DBT_DEVTYP_DEVICEINTERFACE */ + BROADCAST_DEVICE_TYPE_DEVICEINTERFACE = 5, + /* DBT_DEVTYP_HANDLE */ + BROADCAST_DEVICE_TYPE_HANDLE = 6 +} broadcast_device_type; + +typedef struct _device_broadcast_header +{ + DWORD reserved; +} device_broadcast_header; + +typedef struct _device_broadcast_deviceinterface I would get rid of the typedef as well. Generally I think 'struct X' is better by virtue of being more explicit.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/6315#note_79371