{"action":"created","comment":{"url":"https://api.github.com/repos/aerofs/jnotify/pulls/comments/27692519","id":27692519,"diff_hunk":"@@ -41,38 +39,35 @@\n \n using namespace std;\n \n-typedef void(*ChangeCallback)(int watchID, int action, const WCHAR* rootPath, const WCHAR* filePath);\n+typedef void(*ChangeCallback)(int watchID, int action, const WCHAR* filePath, int len);\n \n class WatchData\n {\n-private:\t\n-\tstatic int _counter;\n-\tWCHAR* _path;\n-\tint _watchId;\n-\tHANDLE _hDir;\n-\tint _mask;\n-\tbool _watchSubtree;\n-\tDWORD _byteReturned;\n-\tOVERLAPPED _overLapped;\n-\tchar _buffer[8196];\n-\tHANDLE _completionPort;\n+private:\n+    static int _counter;\n+\n+    bool _watchSubtree;","path":"win32/WatchData.h","position":32,"original_position":32,"commit_id":"f438d0738ceba7dbfcc3201cfddc9f7f4247574c","original_commit_id":"f438d0738ceba7dbfcc3201cfddc9f7f4247574c","user":{"login":"zarvox","id":307325,"avatar_url":"https://avatars.githubusercontent.com/u/307325?v=3","gravatar_id":"","url":"https://api.github.com/users/zarvox","html_url":"https://github.com/zarvox","followers_url":"https://api.github.com/users/zarvox/followers","following_url":"https://api.github.com/users/zarvox/following{/other_user}","gists_url":"https://api.github.com/users/zarvox/gists{/gist_id}","starred_url":"https://api.github.com/users/zarvox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zarvox/subscriptions","organizations_url":"https://api.github.com/users/zarvox/orgs","repos_url":"https://api.github.com/users/zarvox/repos","events_url":"https://api.github.com/users/zarvox/events{/privacy}","received_events_url":"https://api.github.com/users/zarvox/received_events","type":"User","site_admin":false},"body":"I guess it was going to anyway.  This is a not-well-organized struct. :P","created_at":"2015-04-02T20:12:01Z","updated_at":"2015-04-02T20:12:01Z","html_url":"https://github.com/aerofs/jnotify/pull/5#discussion_r27692519","pull_request_url":"https://api.github.com/repos/aerofs/jnotify/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/aerofs/jnotify/pulls/comments/27692519"},"html":{"href":"https://github.com/aerofs/jnotify/pull/5#discussion_r27692519"},"pull_request":{"href":"https://api.github.com/repos/aerofs/jnotify/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/aerofs/jnotify/pulls/5","id":32543427,"html_url":"https://github.com/aerofs/jnotify/pull/5","diff_url":"https://github.com/aerofs/jnotify/pull/5.diff","patch_url":"https://github.com/aerofs/jnotify/pull/5.patch","issue_url":"https://api.github.com/repos/aerofs/jnotify/issues/5","number":5,"state":"closed","locked":false,"title":"Handle kernel queue overflow on windows","user":{"login":"huguesb","id":7319881,"avatar_url":"https://avatars.githubusercontent.com/u/7319881?v=3","gravatar_id":"","url":"https://api.github.com/users/huguesb","html_url":"https://github.com/huguesb","followers_url":"https://api.github.com/users/huguesb/followers","following_url":"https://api.github.com/users/huguesb/following{/other_user}","gists_url":"https://api.github.com/users/huguesb/gists{/gist_id}","starred_url":"https://api.github.com/users/huguesb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huguesb/subscriptions","organizations_url":"https://api.github.com/users/huguesb/orgs","repos_url":"https://api.github.com/users/huguesb/repos","events_url":"https://api.github.com/users/huguesb/events{/privacy}","received_events_url":"https://api.github.com/users/huguesb/received_events","type":"User","site_admin":false},"body":"Correctly restart watch after queue overflow\r\nCall java callback with special QUEUE_OVERFLOW action code\r\nCleanup win32 notification API\r\nRuntime-controlled log level\r\nAvoid unnecessary copies\r\nCleanup indent","created_at":"2015-04-02T19:43:34Z","updated_at":"2015-04-02T20:12:01Z","closed_at":"2015-04-02T19:46:59Z","merged_at":"2015-04-02T19:46:59Z","merge_commit_sha":"2bb0fc4c93448555989409697c390bcc5905bfa4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/aerofs/jnotify/pulls/5/commits","review_comments_url":"https://api.github.com/repos/aerofs/jnotify/pulls/5/comments","review_comment_url":"https://api.github.com/repos/aerofs/jnotify/pulls/comments{/number}","comments_url":"https://api.github.com/repos/aerofs/jnotify/issues/5/comments","statuses_url":"https://api.github.com/repos/aerofs/jnotify/statuses/f438d0738ceba7dbfcc3201cfddc9f7f4247574c","head":{"label":"aerofs:win32","ref":"win32","sha":"f438d0738ceba7dbfcc3201cfddc9f7f4247574c","user":{"login":"aerofs","id":1200824,"avatar_url":"https://avatars.githubusercontent.com/u/1200824?v=3","gravatar_id":"","url":"https://api.github.com/users/aerofs","html_url":"https://github.com/aerofs","followers_url":"https://api.github.com/users/aerofs/followers","following_url":"https://api.github.com/users/aerofs/following{/other_user}","gists_url":"https://api.github.com/users/aerofs/gists{/gist_id}","starred_url":"https://api.github.com/users/aerofs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aerofs/subscriptions","organizations_url":"https://api.github.com/users/aerofs/orgs","repos_url":"https://api.github.com/users/aerofs/repos","events_url":"https://api.github.com/users/aerofs/events{/privacy}","received_events_url":"https://api.github.com/users/aerofs/received_events","type":"Organization","site_admin":false},"repo":{"id":18536891,"name":"jnotify","full_name":"aerofs/jnotify","owner":{"login":"aerofs","id":1200824,"avatar_url":"https://avatars.githubusercontent.com/u/1200824?v=3","gravatar_id":"","url":"https://api.github.com/users/aerofs","html_url":"https://github.com/aerofs","followers_url":"https://api.github.com/users/aerofs/followers","following_url":"https://api.github.com/users/aerofs/following{/other_user}","gists_url":"https://api.github.com/users/aerofs/gists{/gist_id}","starred_url":"https://api.github.com/users/aerofs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aerofs/subscriptions","organizations_url":"https://api.github.com/users/aerofs/orgs","repos_url":"https://api.github.com/users/aerofs/repos","events_url":"https://api.github.com/users/aerofs/events{/privacy}","received_events_url":"https://api.github.com/users/aerofs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aerofs/jnotify","description":"Java bindings for native notification libraries","fork":false,"url":"https://api.github.com/repos/aerofs/jnotify","forks_url":"https://api.github.com/repos/aerofs/jnotify/forks","keys_url":"https://api.github.com/repos/aerofs/jnotify/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aerofs/jnotify/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aerofs/jnotify/teams","hooks_url":"https://api.github.com/repos/aerofs/jnotify/hooks","issue_events_url":"https://api.github.com/repos/aerofs/jnotify/issues/events{/number}","events_url":"https://api.github.com/repos/aerofs/jnotify/events","assignees_url":"https://api.github.com/repos/aerofs/jnotify/assignees{/user}","branches_url":"https://api.github.com/repos/aerofs/jnotify/branches{/branch}","tags_url":"https://api.github.com/repos/aerofs/jnotify/tags","blobs_url":"https://api.github.com/repos/aerofs/jnotify/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aerofs/jnotify/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aerofs/jnotify/git/refs{/sha}","trees_url":"https://api.github.com/repos/aerofs/jnotify/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aerofs/jnotify/statuses/{sha}","languages_url":"https://api.github.com/repos/aerofs/jnotify/languages","stargazers_url":"https://api.github.com/repos/aerofs/jnotify/stargazers","contributors_url":"https://api.github.com/repos/aerofs/jnotify/contributors","subscribers_url":"https://api.github.com/repos/aerofs/jnotify/subscribers","subscription_url":"https://api.github.com/repos/aerofs/jnotify/subscription","commits_url":"https://api.github.com/repos/aerofs/jnotify/commits{/sha}","git_commits_url":"https://api.github.com/repos/aerofs/jnotify/git/commits{/sha}","comments_url":"https://api.github.com/repos/aerofs/jnotify/comments{/number}","issue_comment_url":"https://api.github.com/repos/aerofs/jnotify/issues/comments{/number}","contents_url":"https://api.github.com/repos/aerofs/jnotify/contents/{+path}","compare_url":"https://api.github.com/repos/aerofs/jnotify/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aerofs/jnotify/merges","archive_url":"https://api.github.com/repos/aerofs/jnotify/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aerofs/jnotify/downloads","issues_url":"https://api.github.com/repos/aerofs/jnotify/issues{/number}","pulls_url":"https://api.github.com/repos/aerofs/jnotify/pulls{/number}","milestones_url":"https://api.github.com/repos/aerofs/jnotify/milestones{/number}","notifications_url":"https://api.github.com/repos/aerofs/jnotify/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aerofs/jnotify/labels{/name}","releases_url":"https://api.github.com/repos/aerofs/jnotify/releases{/id}","created_at":"2014-04-07T22:31:07Z","updated_at":"2015-04-02T19:46:59Z","pushed_at":"2015-04-02T19:46:59Z","git_url":"git://github.com/aerofs/jnotify.git","ssh_url":"git@github.com:aerofs/jnotify.git","clone_url":"https://github.com/aerofs/jnotify.git","svn_url":"https://github.com/aerofs/jnotify","homepage":"","size":292,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"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":0,"default_branch":"master"}},"base":{"label":"aerofs:master","ref":"master","sha":"af6e5e5350e28d20ebe4425ae805683d6fdc42d4","user":{"login":"aerofs","id":1200824,"avatar_url":"https://avatars.githubusercontent.com/u/1200824?v=3","gravatar_id":"","url":"https://api.github.com/users/aerofs","html_url":"https://github.com/aerofs","followers_url":"https://api.github.com/users/aerofs/followers","following_url":"https://api.github.com/users/aerofs/following{/other_user}","gists_url":"https://api.github.com/users/aerofs/gists{/gist_id}","starred_url":"https://api.github.com/users/aerofs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aerofs/subscriptions","organizations_url":"https://api.github.com/users/aerofs/orgs","repos_url":"https://api.github.com/users/aerofs/repos","events_url":"https://api.github.com/users/aerofs/events{/privacy}","received_events_url":"https://api.github.com/users/aerofs/received_events","type":"Organization","site_admin":false},"repo":{"id":18536891,"name":"jnotify","full_name":"aerofs/jnotify","owner":{"login":"aerofs","id":1200824,"avatar_url":"https://avatars.githubusercontent.com/u/1200824?v=3","gravatar_id":"","url":"https://api.github.com/users/aerofs","html_url":"https://github.com/aerofs","followers_url":"https://api.github.com/users/aerofs/followers","following_url":"https://api.github.com/users/aerofs/following{/other_user}","gists_url":"https://api.github.com/users/aerofs/gists{/gist_id}","starred_url":"https://api.github.com/users/aerofs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aerofs/subscriptions","organizations_url":"https://api.github.com/users/aerofs/orgs","repos_url":"https://api.github.com/users/aerofs/repos","events_url":"https://api.github.com/users/aerofs/events{/privacy}","received_events_url":"https://api.github.com/users/aerofs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/aerofs/jnotify","description":"Java bindings for native notification libraries","fork":false,"url":"https://api.github.com/repos/aerofs/jnotify","forks_url":"https://api.github.com/repos/aerofs/jnotify/forks","keys_url":"https://api.github.com/repos/aerofs/jnotify/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aerofs/jnotify/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aerofs/jnotify/teams","hooks_url":"https://api.github.com/repos/aerofs/jnotify/hooks","issue_events_url":"https://api.github.com/repos/aerofs/jnotify/issues/events{/number}","events_url":"https://api.github.com/repos/aerofs/jnotify/events","assignees_url":"https://api.github.com/repos/aerofs/jnotify/assignees{/user}","branches_url":"https://api.github.com/repos/aerofs/jnotify/branches{/branch}","tags_url":"https://api.github.com/repos/aerofs/jnotify/tags","blobs_url":"https://api.github.com/repos/aerofs/jnotify/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aerofs/jnotify/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aerofs/jnotify/git/refs{/sha}","trees_url":"https://api.github.com/repos/aerofs/jnotify/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aerofs/jnotify/statuses/{sha}","languages_url":"https://api.github.com/repos/aerofs/jnotify/languages","stargazers_url":"https://api.github.com/repos/aerofs/jnotify/stargazers","contributors_url":"https://api.github.com/repos/aerofs/jnotify/contributors","subscribers_url":"https://api.github.com/repos/aerofs/jnotify/subscribers","subscription_url":"https://api.github.com/repos/aerofs/jnotify/subscription","commits_url":"https://api.github.com/repos/aerofs/jnotify/commits{/sha}","git_commits_url":"https://api.github.com/repos/aerofs/jnotify/git/commits{/sha}","comments_url":"https://api.github.com/repos/aerofs/jnotify/comments{/number}","issue_comment_url":"https://api.github.com/repos/aerofs/jnotify/issues/comments{/number}","contents_url":"https://api.github.com/repos/aerofs/jnotify/contents/{+path}","compare_url":"https://api.github.com/repos/aerofs/jnotify/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aerofs/jnotify/merges","archive_url":"https://api.github.com/repos/aerofs/jnotify/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aerofs/jnotify/downloads","issues_url":"https://api.github.com/repos/aerofs/jnotify/issues{/number}","pulls_url":"https://api.github.com/repos/aerofs/jnotify/pulls{/number}","milestones_url":"https://api.github.com/repos/aerofs/jnotify/milestones{/number}","notifications_url":"https://api.github.com/repos/aerofs/jnotify/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aerofs/jnotify/labels{/name}","releases_url":"https://api.github.com/repos/aerofs/jnotify/releases{/id}","created_at":"2014-04-07T22:31:07Z","updated_at":"2015-04-02T19:46:59Z","pushed_at":"2015-04-02T19:46:59Z","git_url":"git://github.com/aerofs/jnotify.git","ssh_url":"git@github.com:aerofs/jnotify.git","clone_url":"https://github.com/aerofs/jnotify.git","svn_url":"https://github.com/aerofs/jnotify","homepage":"","size":292,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"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":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/aerofs/jnotify/pulls/5"},"html":{"href":"https://github.com/aerofs/jnotify/pull/5"},"issue":{"href":"https://api.github.com/repos/aerofs/jnotify/issues/5"},"comments":{"href":"https://api.github.com/repos/aerofs/jnotify/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/aerofs/jnotify/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/aerofs/jnotify/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/aerofs/jnotify/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/aerofs/jnotify/statuses/f438d0738ceba7dbfcc3201cfddc9f7f4247574c"}}}}