{"action":"opened","number":220,"pull_request":{"url":"https://api.github.com/repos/signal11/hidapi/pulls/220","id":32819604,"html_url":"https://github.com/signal11/hidapi/pull/220","diff_url":"https://github.com/signal11/hidapi/pull/220.diff","patch_url":"https://github.com/signal11/hidapi/pull/220.patch","issue_url":"https://api.github.com/repos/signal11/hidapi/issues/220","number":220,"state":"open","locked":false,"title":"Linux/hidraw: Ensure udev has initialized device before hid_enumerate returns it","user":{"login":"mrpippy","id":780632,"avatar_url":"https://avatars.githubusercontent.com/u/780632?v=3","gravatar_id":"","url":"https://api.github.com/users/mrpippy","html_url":"https://github.com/mrpippy","followers_url":"https://api.github.com/users/mrpippy/followers","following_url":"https://api.github.com/users/mrpippy/following{/other_user}","gists_url":"https://api.github.com/users/mrpippy/gists{/gist_id}","starred_url":"https://api.github.com/users/mrpippy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrpippy/subscriptions","organizations_url":"https://api.github.com/users/mrpippy/orgs","repos_url":"https://api.github.com/users/mrpippy/repos","events_url":"https://api.github.com/users/mrpippy/events{/privacy}","received_events_url":"https://api.github.com/users/mrpippy/received_events","type":"User","site_admin":false},"body":"In hid_enumerate(), skip any devices which have not yet been initialized by udev (which includes setting permissions on the device node).\r\nPreviously, a race condition was possible where hid_enumerate() could return a device that hid_open() could not open, because udev had not set permissions on the device node yet.\r\n\r\nThis resolves issue 217, \"Occasional 'permission denied' when opening device\" (https://github.com/signal11/hidapi/issues/217)","created_at":"2015-04-08T00:43:56Z","updated_at":"2015-04-08T00:43:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/signal11/hidapi/pulls/220/commits","review_comments_url":"https://api.github.com/repos/signal11/hidapi/pulls/220/comments","review_comment_url":"https://api.github.com/repos/signal11/hidapi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/signal11/hidapi/issues/220/comments","statuses_url":"https://api.github.com/repos/signal11/hidapi/statuses/ed3f89a395c390e1b50f86d2853972cafd13c766","head":{"label":"mrpippy:linux_hidraw_udev_permissions","ref":"linux_hidraw_udev_permissions","sha":"ed3f89a395c390e1b50f86d2853972cafd13c766","user":{"login":"mrpippy","id":780632,"avatar_url":"https://avatars.githubusercontent.com/u/780632?v=3","gravatar_id":"","url":"https://api.github.com/users/mrpippy","html_url":"https://github.com/mrpippy","followers_url":"https://api.github.com/users/mrpippy/followers","following_url":"https://api.github.com/users/mrpippy/following{/other_user}","gists_url":"https://api.github.com/users/mrpippy/gists{/gist_id}","starred_url":"https://api.github.com/users/mrpippy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrpippy/subscriptions","organizations_url":"https://api.github.com/users/mrpippy/orgs","repos_url":"https://api.github.com/users/mrpippy/repos","events_url":"https://api.github.com/users/mrpippy/events{/privacy}","received_events_url":"https://api.github.com/users/mrpippy/received_events","type":"User","site_admin":false},"repo":{"id":2887693,"name":"hidapi","full_name":"mrpippy/hidapi","owner":{"login":"mrpippy","id":780632,"avatar_url":"https://avatars.githubusercontent.com/u/780632?v=3","gravatar_id":"","url":"https://api.github.com/users/mrpippy","html_url":"https://github.com/mrpippy","followers_url":"https://api.github.com/users/mrpippy/followers","following_url":"https://api.github.com/users/mrpippy/following{/other_user}","gists_url":"https://api.github.com/users/mrpippy/gists{/gist_id}","starred_url":"https://api.github.com/users/mrpippy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrpippy/subscriptions","organizations_url":"https://api.github.com/users/mrpippy/orgs","repos_url":"https://api.github.com/users/mrpippy/repos","events_url":"https://api.github.com/users/mrpippy/events{/privacy}","received_events_url":"https://api.github.com/users/mrpippy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mrpippy/hidapi","description":"A Simple library for communicating with USB and Bluetooth HID devices on Linux, Mac, and Windows.","fork":true,"url":"https://api.github.com/repos/mrpippy/hidapi","forks_url":"https://api.github.com/repos/mrpippy/hidapi/forks","keys_url":"https://api.github.com/repos/mrpippy/hidapi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mrpippy/hidapi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mrpippy/hidapi/teams","hooks_url":"https://api.github.com/repos/mrpippy/hidapi/hooks","issue_events_url":"https://api.github.com/repos/mrpippy/hidapi/issues/events{/number}","events_url":"https://api.github.com/repos/mrpippy/hidapi/events","assignees_url":"https://api.github.com/repos/mrpippy/hidapi/assignees{/user}","branches_url":"https://api.github.com/repos/mrpippy/hidapi/branches{/branch}","tags_url":"https://api.github.com/repos/mrpippy/hidapi/tags","blobs_url":"https://api.github.com/repos/mrpippy/hidapi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mrpippy/hidapi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mrpippy/hidapi/git/refs{/sha}","trees_url":"https://api.github.com/repos/mrpippy/hidapi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mrpippy/hidapi/statuses/{sha}","languages_url":"https://api.github.com/repos/mrpippy/hidapi/languages","stargazers_url":"https://api.github.com/repos/mrpippy/hidapi/stargazers","contributors_url":"https://api.github.com/repos/mrpippy/hidapi/contributors","subscribers_url":"https://api.github.com/repos/mrpippy/hidapi/subscribers","subscription_url":"https://api.github.com/repos/mrpippy/hidapi/subscription","commits_url":"https://api.github.com/repos/mrpippy/hidapi/commits{/sha}","git_commits_url":"https://api.github.com/repos/mrpippy/hidapi/git/commits{/sha}","comments_url":"https://api.github.com/repos/mrpippy/hidapi/comments{/number}","issue_comment_url":"https://api.github.com/repos/mrpippy/hidapi/issues/comments{/number}","contents_url":"https://api.github.com/repos/mrpippy/hidapi/contents/{+path}","compare_url":"https://api.github.com/repos/mrpippy/hidapi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mrpippy/hidapi/merges","archive_url":"https://api.github.com/repos/mrpippy/hidapi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mrpippy/hidapi/downloads","issues_url":"https://api.github.com/repos/mrpippy/hidapi/issues{/number}","pulls_url":"https://api.github.com/repos/mrpippy/hidapi/pulls{/number}","milestones_url":"https://api.github.com/repos/mrpippy/hidapi/milestones{/number}","notifications_url":"https://api.github.com/repos/mrpippy/hidapi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mrpippy/hidapi/labels{/name}","releases_url":"https://api.github.com/repos/mrpippy/hidapi/releases{/id}","created_at":"2011-12-01T00:21:21Z","updated_at":"2014-11-24T21:05:09Z","pushed_at":"2015-04-08T00:41:15Z","git_url":"git://github.com/mrpippy/hidapi.git","ssh_url":"git@github.com:mrpippy/hidapi.git","clone_url":"https://github.com/mrpippy/hidapi.git","svn_url":"https://github.com/mrpippy/hidapi","homepage":"http://www.signal11.us/oss/hidapi/","size":2947,"stargazers_count":1,"watchers_count":1,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"signal11:master","ref":"master","sha":"d17db57b9d4354752e0af42f5f33007a42ef2906","user":{"login":"signal11","id":168999,"avatar_url":"https://avatars.githubusercontent.com/u/168999?v=3","gravatar_id":"","url":"https://api.github.com/users/signal11","html_url":"https://github.com/signal11","followers_url":"https://api.github.com/users/signal11/followers","following_url":"https://api.github.com/users/signal11/following{/other_user}","gists_url":"https://api.github.com/users/signal11/gists{/gist_id}","starred_url":"https://api.github.com/users/signal11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/signal11/subscriptions","organizations_url":"https://api.github.com/users/signal11/orgs","repos_url":"https://api.github.com/users/signal11/repos","events_url":"https://api.github.com/users/signal11/events{/privacy}","received_events_url":"https://api.github.com/users/signal11/received_events","type":"User","site_admin":false},"repo":{"id":605459,"name":"hidapi","full_name":"signal11/hidapi","owner":{"login":"signal11","id":168999,"avatar_url":"https://avatars.githubusercontent.com/u/168999?v=3","gravatar_id":"","url":"https://api.github.com/users/signal11","html_url":"https://github.com/signal11","followers_url":"https://api.github.com/users/signal11/followers","following_url":"https://api.github.com/users/signal11/following{/other_user}","gists_url":"https://api.github.com/users/signal11/gists{/gist_id}","starred_url":"https://api.github.com/users/signal11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/signal11/subscriptions","organizations_url":"https://api.github.com/users/signal11/orgs","repos_url":"https://api.github.com/users/signal11/repos","events_url":"https://api.github.com/users/signal11/events{/privacy}","received_events_url":"https://api.github.com/users/signal11/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/signal11/hidapi","description":"A Simple library for communicating with USB and Bluetooth HID devices on Linux, Mac, and Windows.","fork":false,"url":"https://api.github.com/repos/signal11/hidapi","forks_url":"https://api.github.com/repos/signal11/hidapi/forks","keys_url":"https://api.github.com/repos/signal11/hidapi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/signal11/hidapi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/signal11/hidapi/teams","hooks_url":"https://api.github.com/repos/signal11/hidapi/hooks","issue_events_url":"https://api.github.com/repos/signal11/hidapi/issues/events{/number}","events_url":"https://api.github.com/repos/signal11/hidapi/events","assignees_url":"https://api.github.com/repos/signal11/hidapi/assignees{/user}","branches_url":"https://api.github.com/repos/signal11/hidapi/branches{/branch}","tags_url":"https://api.github.com/repos/signal11/hidapi/tags","blobs_url":"https://api.github.com/repos/signal11/hidapi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/signal11/hidapi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/signal11/hidapi/git/refs{/sha}","trees_url":"https://api.github.com/repos/signal11/hidapi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/signal11/hidapi/statuses/{sha}","languages_url":"https://api.github.com/repos/signal11/hidapi/languages","stargazers_url":"https://api.github.com/repos/signal11/hidapi/stargazers","contributors_url":"https://api.github.com/repos/signal11/hidapi/contributors","subscribers_url":"https://api.github.com/repos/signal11/hidapi/subscribers","subscription_url":"https://api.github.com/repos/signal11/hidapi/subscription","commits_url":"https://api.github.com/repos/signal11/hidapi/commits{/sha}","git_commits_url":"https://api.github.com/repos/signal11/hidapi/git/commits{/sha}","comments_url":"https://api.github.com/repos/signal11/hidapi/comments{/number}","issue_comment_url":"https://api.github.com/repos/signal11/hidapi/issues/comments{/number}","contents_url":"https://api.github.com/repos/signal11/hidapi/contents/{+path}","compare_url":"https://api.github.com/repos/signal11/hidapi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/signal11/hidapi/merges","archive_url":"https://api.github.com/repos/signal11/hidapi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/signal11/hidapi/downloads","issues_url":"https://api.github.com/repos/signal11/hidapi/issues{/number}","pulls_url":"https://api.github.com/repos/signal11/hidapi/pulls{/number}","milestones_url":"https://api.github.com/repos/signal11/hidapi/milestones{/number}","notifications_url":"https://api.github.com/repos/signal11/hidapi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/signal11/hidapi/labels{/name}","releases_url":"https://api.github.com/repos/signal11/hidapi/releases{/id}","created_at":"2010-04-11T20:04:33Z","updated_at":"2015-04-06T17:57:31Z","pushed_at":"2015-04-08T00:43:56Z","git_url":"git://github.com/signal11/hidapi.git","ssh_url":"git@github.com:signal11/hidapi.git","clone_url":"https://github.com/signal11/hidapi.git","svn_url":"https://github.com/signal11/hidapi","homepage":"http://www.signal11.us/oss/hidapi/","size":3779,"stargazers_count":445,"watchers_count":445,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":186,"mirror_url":null,"open_issues_count":74,"forks":186,"open_issues":74,"watchers":445,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/signal11/hidapi/pulls/220"},"html":{"href":"https://github.com/signal11/hidapi/pull/220"},"issue":{"href":"https://api.github.com/repos/signal11/hidapi/issues/220"},"comments":{"href":"https://api.github.com/repos/signal11/hidapi/issues/220/comments"},"review_comments":{"href":"https://api.github.com/repos/signal11/hidapi/pulls/220/comments"},"review_comment":{"href":"https://api.github.com/repos/signal11/hidapi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/signal11/hidapi/pulls/220/commits"},"statuses":{"href":"https://api.github.com/repos/signal11/hidapi/statuses/ed3f89a395c390e1b50f86d2853972cafd13c766"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":6,"deletions":0,"changed_files":1}}