Ported code from SetupApi to CfgMgr32 #362
No reviewers
Labels
No labels
3rdparty
Android
API
Author does not respond
bsd
bug
build system/CI
ci-virtual-device
CMake
Contributions Welcome
Core
dependencies
device-specific
documentation
don't_merge
duplicate
enhancement
Example
Haiku
hidraw
hotplug
info required
invalid
libusb
macOS
Misc
Not an issue
question
Release
Test
Test GUI
Windows
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-libusb/hidapi!362
Loading…
Reference in a new issue
No description provided.
Delete branch "remove_setup_api"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Once you've removed dependency on SetupAPI - we should remove link dependency on it too: from CMakeLists, autotools and vsproj files
@ -627,1 +619,4 @@CONFIGRET cr;wchar_t* device_interface_list = NULL;DWORD len;Sinse we are refactoring - lets get rid of this comment
This is nice refactoring, thanks.
None of it is relevant to the topic of the PR.
Please revert all the white-space changes and shuffling around of the order of declarations.
It makes unnecessary noise in the git history, which I often need to consult.
Remove all of the link dependencies on
cfgmgr32andhidfrom all of build scripts.@ -4,7 +4,6 @@ add_library(hidapi_winapi)And with this change you will break the build for everywone who don't have WDK installed (which is a large amount of users).
To have a support of DDK builds, it has to be done properly, e.g. a CMake option, and link against
hid.libonly when the user explicitly needs to.@ -21,11 +21,17 @@********************************************************/whese are removed, not moved - is that mean we don't use any of
stdlib.h/string.hanymore?@ -4,7 +4,6 @@ add_library(hidapi_winapi)Just to be clear: DDK support is out of scope of this PR.
And it would require a lot more than I've mentioned in the previous comment.
alright
@ -21,11 +21,17 @@********************************************************/it seems. or these are included by some other headers. not sure how to check.
@ -4,7 +4,6 @@ add_library(hidapi_winapi)Alright. I'll do another PR for that.
@ -21,11 +21,17 @@********************************************************/That is a time bomb. I've had a failed builds after a compiler/library upgrade, because some of the headers where implicitly included where they shouldn't.
except for the potential leak - looks good
@ -588,136 +589,91 @@ static struct hid_device_info *hid_get_device_info(const char *path, HANDLE hand}device_interface_listleak herecheck for non-
NULLreturnA little curious why porting SetupApi to CfgMgr32?
https://github.com/flutter/flutter/issues/14967#issuecomment-1033337989