{"action":"created","issue":{"url":"https://api.github.com/repos/signal11/hidapi/issues/212","repository_url":"https://api.github.com/repos/signal11/hidapi","labels_url":"https://api.github.com/repos/signal11/hidapi/issues/212/labels{/name}","comments_url":"https://api.github.com/repos/signal11/hidapi/issues/212/comments","events_url":"https://api.github.com/repos/signal11/hidapi/issues/212/events","html_url":"https://github.com/signal11/hidapi/pull/212","id":55176401,"number":212,"title":"hidapi: Add new hid_enumerate_device function.","user":{"login":"Armada651","id":2028870,"avatar_url":"https://avatars.githubusercontent.com/u/2028870?v=3","gravatar_id":"","url":"https://api.github.com/users/Armada651","html_url":"https://github.com/Armada651","followers_url":"https://api.github.com/users/Armada651/followers","following_url":"https://api.github.com/users/Armada651/following{/other_user}","gists_url":"https://api.github.com/users/Armada651/gists{/gist_id}","starred_url":"https://api.github.com/users/Armada651/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Armada651/subscriptions","organizations_url":"https://api.github.com/users/Armada651/orgs","repos_url":"https://api.github.com/users/Armada651/repos","events_url":"https://api.github.com/users/Armada651/events{/privacy}","received_events_url":"https://api.github.com/users/Armada651/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-22T16:42:05Z","updated_at":"2016-02-26T20:03:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/signal11/hidapi/pulls/212","html_url":"https://github.com/signal11/hidapi/pull/212","diff_url":"https://github.com/signal11/hidapi/pull/212.diff","patch_url":"https://github.com/signal11/hidapi/pull/212.patch"},"body":"This function allows us to get information about a device when we already have its path. In the future this function may enumerate all interfaces on a device.\r\n\r\nI will provide Linux and Mac implementations if you agree that this function is useful and should be added.\r\n\r\nMy current use case for this function is retrieving device paths from a WM_DEVICECHANGE event and then using this new function to query information about the HID device."},"comment":{"url":"https://api.github.com/repos/signal11/hidapi/issues/comments/189458647","html_url":"https://github.com/signal11/hidapi/pull/212#issuecomment-189458647","issue_url":"https://api.github.com/repos/signal11/hidapi/issues/212","id":189458647,"user":{"login":"Armada651","id":2028870,"avatar_url":"https://avatars.githubusercontent.com/u/2028870?v=3","gravatar_id":"","url":"https://api.github.com/users/Armada651","html_url":"https://github.com/Armada651","followers_url":"https://api.github.com/users/Armada651/followers","following_url":"https://api.github.com/users/Armada651/following{/other_user}","gists_url":"https://api.github.com/users/Armada651/gists{/gist_id}","starred_url":"https://api.github.com/users/Armada651/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Armada651/subscriptions","organizations_url":"https://api.github.com/users/Armada651/orgs","repos_url":"https://api.github.com/users/Armada651/repos","events_url":"https://api.github.com/users/Armada651/events{/privacy}","received_events_url":"https://api.github.com/users/Armada651/received_events","type":"User","site_admin":false},"created_at":"2016-02-26T20:03:50Z","updated_at":"2016-02-26T20:03:50Z","body":"@rpavlik You ran into a similar use case? For an API this widely used, it's a shame it's not really being maintained anymore.\r\n\r\nIn the end I decided to just enumerate all devices periodically, so I don't have to deal with platform-specific hotplugging events anymore."}}