{"action":"created","comment":{"url":"https://api.github.com/repos/java-native-access/jna/pulls/comments/49290674","id":49290674,"diff_hunk":"@@ -2905,6 +2905,114 @@ public SYSTEM_LOGICAL_PROCESSOR_INFORMATION(Pointer memory) {\n         int RelationAll = 0xFFFF;\n     }\n \n+    /**\n+     * Contains information about the relationships of logical processors and related hardware. The\n+     * GetLogicalProcessorInformationEx function uses this structure.\n+     */\n+    class SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX extends Structure {\n+        public static final List<String> FIELDS = createFieldsOrder(\"relationship\", \"size\", \"processor\");\n+\n+        /**\n+         * The type of relationship between the logical processors.\n+         */\n+        public WinDef.DWORD relationship;\n+\n+        /**\n+         * The size of the structure.\n+         */\n+        public WinDef.DWORD size;\n+\n+        /**\n+         * A PROCESSOR_RELATIONSHIP structure that describes processor affinity. This structure contains valid data only if\n+         * the Relationship member is RelationProcessorCore or RelationProcessorPackage.\n+         *\n+         * This is actually a union with the NUMA and other data types.\n+         */\n+        public PROCESSOR_RELATIONSHIP processor;\n+\n+        public SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX()\n+        {}\n+\n+        public SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX(Pointer pointer, int offset) {\n+            useMemory(pointer, offset);\n+            read();\n+        }\n+\n+        @Override\n+        protected List<String> getFieldOrder()\n+        {\n+            return FIELDS;\n+        }\n+    }\n+\n+    /**\n+     * Represents information about affinity within a processor group. This structure is used with the\n+     * GetLogicalProcessorInformationEx function.\n+     */\n+    class PROCESSOR_RELATIONSHIP extends Structure {\n+        public static final List<String> FIELDS = createFieldsOrder(\"flags\", \"reserved\", \"groupCount\", \"groupMask\");\n+\n+        /**\n+         * <p>If the Relationship member of the SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX structure is RelationProcessorCore,\n+         * this member is LTP_PC_SMT if the core has more than one logical processor, or 0 if the core has one logical\n+         * processor.</p>\n+         *\n+         * <p>If the Relationship member of the SYSTEM_LOGICAL_PROCESSOR_INFORMATION_EX structure is\n+         * RelationProcessorPackage, this member is always 0.</p>\n+         */\n+        public byte flags;\n+\n+        /**\n+         * This member is reserved.\n+         */\n+        public byte[] reserved = new byte[21];\n+\n+        /**\n+         * This member specifies the number of entries in the GroupMask array.\n+         */\n+        public WinDef.WORD groupCount;\n+\n+        /**\n+         * An array of GROUP_AFFINITY structures. The GroupCount member specifies the number of structures in the array.\n+         * Each structure in the array specifies a group number and processor affinity within the group.\n+         */\n+        public GROUP_AFFINITY[] groupMask = new GROUP_AFFINITY[1];\n+\n+        @Override\n+        protected List<String> getFieldOrder()\n+        {\n+            return FIELDS;\n+        }\n+    }\n+\n+    /**\n+     * Represents a processor group-specific affinity, such as the affinity of a thread.\n+     */\n+    public class GROUP_AFFINITY extends Structure {\n+        public static final List<String> FIELDS = createFieldsOrder(\"mask\", \"group\", \"reserved\");\n+\n+        /**\n+         * A bitmap that specifies the affinity for zero or more processors within the specified group.\n+         */\n+        public BaseTSD.ULONG_PTR mask;\n+\n+        /**\n+         * The processor group number.\n+         */\n+        public WinDef.WORD group;\n+\n+        /**\n+         * This member is reserved.\n+         */\n+        public WinDef.WORD[] reserved = new WinDef.WORD[3];\n+\n+        @Override\n+        protected List<String> getFieldOrder()\n+        {\n+            return FIELDS;\n+        }","path":"contrib/platform/src/com/sun/jna/platform/win32/WinNT.java","position":109,"original_position":109,"commit_id":"600f3cbb3d2e62401f48d07b20cd7751e872228d","original_commit_id":"600f3cbb3d2e62401f48d07b20cd7751e872228d","user":{"login":"lgoldstein","id":1436205,"avatar_url":"https://avatars.githubusercontent.com/u/1436205?v=3","gravatar_id":"","url":"https://api.github.com/users/lgoldstein","html_url":"https://github.com/lgoldstein","followers_url":"https://api.github.com/users/lgoldstein/followers","following_url":"https://api.github.com/users/lgoldstein/following{/other_user}","gists_url":"https://api.github.com/users/lgoldstein/gists{/gist_id}","starred_url":"https://api.github.com/users/lgoldstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lgoldstein/subscriptions","organizations_url":"https://api.github.com/users/lgoldstein/orgs","repos_url":"https://api.github.com/users/lgoldstein/repos","events_url":"https://api.github.com/users/lgoldstein/events{/privacy}","received_events_url":"https://api.github.com/users/lgoldstein/received_events","type":"User","site_admin":false},"body":"Code style - open braces on same line as the method name","created_at":"2016-01-11T05:17:08Z","updated_at":"2016-01-11T05:17:08Z","html_url":"https://github.com/java-native-access/jna/pull/251#discussion_r49290674","pull_request_url":"https://api.github.com/repos/java-native-access/jna/pulls/251","_links":{"self":{"href":"https://api.github.com/repos/java-native-access/jna/pulls/comments/49290674"},"html":{"href":"https://github.com/java-native-access/jna/pull/251#discussion_r49290674"},"pull_request":{"href":"https://api.github.com/repos/java-native-access/jna/pulls/251"}}},"pull_request":{"url":"https://api.github.com/repos/java-native-access/jna/pulls/251","id":7098879,"html_url":"https://github.com/java-native-access/jna/pull/251","diff_url":"https://github.com/java-native-access/jna/pull/251.diff","patch_url":"https://github.com/java-native-access/jna/pull/251.patch","issue_url":"https://api.github.com/repos/java-native-access/jna/issues/251","number":251,"state":"open","locked":false,"title":"Win32 Console API: GetStdHandle, WriteConsole, GetCurrentConsoleFont","user":{"login":"tmyroadctfig","id":855586,"avatar_url":"https://avatars.githubusercontent.com/u/855586?v=3","gravatar_id":"","url":"https://api.github.com/users/tmyroadctfig","html_url":"https://github.com/tmyroadctfig","followers_url":"https://api.github.com/users/tmyroadctfig/followers","following_url":"https://api.github.com/users/tmyroadctfig/following{/other_user}","gists_url":"https://api.github.com/users/tmyroadctfig/gists{/gist_id}","starred_url":"https://api.github.com/users/tmyroadctfig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmyroadctfig/subscriptions","organizations_url":"https://api.github.com/users/tmyroadctfig/orgs","repos_url":"https://api.github.com/users/tmyroadctfig/repos","events_url":"https://api.github.com/users/tmyroadctfig/events{/privacy}","received_events_url":"https://api.github.com/users/tmyroadctfig/received_events","type":"User","site_admin":false},"body":"Added:\r\n\r\n* GetStdHandle()\r\n* WriteConsole()\r\n* GetCurrentConsoleFont()\r\n\r\nI've added in a test for WriteConsole and GetCurrentConsoleFont but they don't pass from IDEA. I'm assume that's because there is no console window displayed.\r\n","created_at":"2013-07-23T06:59:58Z","updated_at":"2016-01-11T05:17:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"843db2c5d780c271bb4d1ce653db99182f56ff6d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/java-native-access/jna/pulls/251/commits","review_comments_url":"https://api.github.com/repos/java-native-access/jna/pulls/251/comments","review_comment_url":"https://api.github.com/repos/java-native-access/jna/pulls/comments{/number}","comments_url":"https://api.github.com/repos/java-native-access/jna/issues/251/comments","statuses_url":"https://api.github.com/repos/java-native-access/jna/statuses/600f3cbb3d2e62401f48d07b20cd7751e872228d","head":{"label":"tmyroadctfig:master","ref":"master","sha":"600f3cbb3d2e62401f48d07b20cd7751e872228d","user":{"login":"tmyroadctfig","id":855586,"avatar_url":"https://avatars.githubusercontent.com/u/855586?v=3","gravatar_id":"","url":"https://api.github.com/users/tmyroadctfig","html_url":"https://github.com/tmyroadctfig","followers_url":"https://api.github.com/users/tmyroadctfig/followers","following_url":"https://api.github.com/users/tmyroadctfig/following{/other_user}","gists_url":"https://api.github.com/users/tmyroadctfig/gists{/gist_id}","starred_url":"https://api.github.com/users/tmyroadctfig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmyroadctfig/subscriptions","organizations_url":"https://api.github.com/users/tmyroadctfig/orgs","repos_url":"https://api.github.com/users/tmyroadctfig/repos","events_url":"https://api.github.com/users/tmyroadctfig/events{/privacy}","received_events_url":"https://api.github.com/users/tmyroadctfig/received_events","type":"User","site_admin":false},"repo":{"id":1920937,"name":"jna","full_name":"tmyroadctfig/jna","owner":{"login":"tmyroadctfig","id":855586,"avatar_url":"https://avatars.githubusercontent.com/u/855586?v=3","gravatar_id":"","url":"https://api.github.com/users/tmyroadctfig","html_url":"https://github.com/tmyroadctfig","followers_url":"https://api.github.com/users/tmyroadctfig/followers","following_url":"https://api.github.com/users/tmyroadctfig/following{/other_user}","gists_url":"https://api.github.com/users/tmyroadctfig/gists{/gist_id}","starred_url":"https://api.github.com/users/tmyroadctfig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmyroadctfig/subscriptions","organizations_url":"https://api.github.com/users/tmyroadctfig/orgs","repos_url":"https://api.github.com/users/tmyroadctfig/repos","events_url":"https://api.github.com/users/tmyroadctfig/events{/privacy}","received_events_url":"https://api.github.com/users/tmyroadctfig/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tmyroadctfig/jna","description":"Java Native Access","fork":true,"url":"https://api.github.com/repos/tmyroadctfig/jna","forks_url":"https://api.github.com/repos/tmyroadctfig/jna/forks","keys_url":"https://api.github.com/repos/tmyroadctfig/jna/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tmyroadctfig/jna/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tmyroadctfig/jna/teams","hooks_url":"https://api.github.com/repos/tmyroadctfig/jna/hooks","issue_events_url":"https://api.github.com/repos/tmyroadctfig/jna/issues/events{/number}","events_url":"https://api.github.com/repos/tmyroadctfig/jna/events","assignees_url":"https://api.github.com/repos/tmyroadctfig/jna/assignees{/user}","branches_url":"https://api.github.com/repos/tmyroadctfig/jna/branches{/branch}","tags_url":"https://api.github.com/repos/tmyroadctfig/jna/tags","blobs_url":"https://api.github.com/repos/tmyroadctfig/jna/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tmyroadctfig/jna/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tmyroadctfig/jna/git/refs{/sha}","trees_url":"https://api.github.com/repos/tmyroadctfig/jna/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tmyroadctfig/jna/statuses/{sha}","languages_url":"https://api.github.com/repos/tmyroadctfig/jna/languages","stargazers_url":"https://api.github.com/repos/tmyroadctfig/jna/stargazers","contributors_url":"https://api.github.com/repos/tmyroadctfig/jna/contributors","subscribers_url":"https://api.github.com/repos/tmyroadctfig/jna/subscribers","subscription_url":"https://api.github.com/repos/tmyroadctfig/jna/subscription","commits_url":"https://api.github.com/repos/tmyroadctfig/jna/commits{/sha}","git_commits_url":"https://api.github.com/repos/tmyroadctfig/jna/git/commits{/sha}","comments_url":"https://api.github.com/repos/tmyroadctfig/jna/comments{/number}","issue_comment_url":"https://api.github.com/repos/tmyroadctfig/jna/issues/comments{/number}","contents_url":"https://api.github.com/repos/tmyroadctfig/jna/contents/{+path}","compare_url":"https://api.github.com/repos/tmyroadctfig/jna/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tmyroadctfig/jna/merges","archive_url":"https://api.github.com/repos/tmyroadctfig/jna/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tmyroadctfig/jna/downloads","issues_url":"https://api.github.com/repos/tmyroadctfig/jna/issues{/number}","pulls_url":"https://api.github.com/repos/tmyroadctfig/jna/pulls{/number}","milestones_url":"https://api.github.com/repos/tmyroadctfig/jna/milestones{/number}","notifications_url":"https://api.github.com/repos/tmyroadctfig/jna/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tmyroadctfig/jna/labels{/name}","releases_url":"https://api.github.com/repos/tmyroadctfig/jna/releases{/id}","created_at":"2011-06-19T22:12:57Z","updated_at":"2015-08-16T22:36:02Z","pushed_at":"2016-01-11T00:00:49Z","git_url":"git://github.com/tmyroadctfig/jna.git","ssh_url":"git@github.com:tmyroadctfig/jna.git","clone_url":"https://github.com/tmyroadctfig/jna.git","svn_url":"https://github.com/tmyroadctfig/jna","homepage":"http://jna.java.net","size":243366,"stargazers_count":1,"watchers_count":1,"language":"Java","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":"java-native-access:master","ref":"master","sha":"3e676353954dcce837d29e3c1d567dd0a584f147","user":{"login":"java-native-access","id":13812895,"avatar_url":"https://avatars.githubusercontent.com/u/13812895?v=3","gravatar_id":"","url":"https://api.github.com/users/java-native-access","html_url":"https://github.com/java-native-access","followers_url":"https://api.github.com/users/java-native-access/followers","following_url":"https://api.github.com/users/java-native-access/following{/other_user}","gists_url":"https://api.github.com/users/java-native-access/gists{/gist_id}","starred_url":"https://api.github.com/users/java-native-access/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/java-native-access/subscriptions","organizations_url":"https://api.github.com/users/java-native-access/orgs","repos_url":"https://api.github.com/users/java-native-access/repos","events_url":"https://api.github.com/users/java-native-access/events{/privacy}","received_events_url":"https://api.github.com/users/java-native-access/received_events","type":"Organization","site_admin":false},"repo":{"id":1680733,"name":"jna","full_name":"java-native-access/jna","owner":{"login":"java-native-access","id":13812895,"avatar_url":"https://avatars.githubusercontent.com/u/13812895?v=3","gravatar_id":"","url":"https://api.github.com/users/java-native-access","html_url":"https://github.com/java-native-access","followers_url":"https://api.github.com/users/java-native-access/followers","following_url":"https://api.github.com/users/java-native-access/following{/other_user}","gists_url":"https://api.github.com/users/java-native-access/gists{/gist_id}","starred_url":"https://api.github.com/users/java-native-access/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/java-native-access/subscriptions","organizations_url":"https://api.github.com/users/java-native-access/orgs","repos_url":"https://api.github.com/users/java-native-access/repos","events_url":"https://api.github.com/users/java-native-access/events{/privacy}","received_events_url":"https://api.github.com/users/java-native-access/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/java-native-access/jna","description":"Java Native Access","fork":false,"url":"https://api.github.com/repos/java-native-access/jna","forks_url":"https://api.github.com/repos/java-native-access/jna/forks","keys_url":"https://api.github.com/repos/java-native-access/jna/keys{/key_id}","collaborators_url":"https://api.github.com/repos/java-native-access/jna/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/java-native-access/jna/teams","hooks_url":"https://api.github.com/repos/java-native-access/jna/hooks","issue_events_url":"https://api.github.com/repos/java-native-access/jna/issues/events{/number}","events_url":"https://api.github.com/repos/java-native-access/jna/events","assignees_url":"https://api.github.com/repos/java-native-access/jna/assignees{/user}","branches_url":"https://api.github.com/repos/java-native-access/jna/branches{/branch}","tags_url":"https://api.github.com/repos/java-native-access/jna/tags","blobs_url":"https://api.github.com/repos/java-native-access/jna/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/java-native-access/jna/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/java-native-access/jna/git/refs{/sha}","trees_url":"https://api.github.com/repos/java-native-access/jna/git/trees{/sha}","statuses_url":"https://api.github.com/repos/java-native-access/jna/statuses/{sha}","languages_url":"https://api.github.com/repos/java-native-access/jna/languages","stargazers_url":"https://api.github.com/repos/java-native-access/jna/stargazers","contributors_url":"https://api.github.com/repos/java-native-access/jna/contributors","subscribers_url":"https://api.github.com/repos/java-native-access/jna/subscribers","subscription_url":"https://api.github.com/repos/java-native-access/jna/subscription","commits_url":"https://api.github.com/repos/java-native-access/jna/commits{/sha}","git_commits_url":"https://api.github.com/repos/java-native-access/jna/git/commits{/sha}","comments_url":"https://api.github.com/repos/java-native-access/jna/comments{/number}","issue_comment_url":"https://api.github.com/repos/java-native-access/jna/issues/comments{/number}","contents_url":"https://api.github.com/repos/java-native-access/jna/contents/{+path}","compare_url":"https://api.github.com/repos/java-native-access/jna/compare/{base}...{head}","merges_url":"https://api.github.com/repos/java-native-access/jna/merges","archive_url":"https://api.github.com/repos/java-native-access/jna/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/java-native-access/jna/downloads","issues_url":"https://api.github.com/repos/java-native-access/jna/issues{/number}","pulls_url":"https://api.github.com/repos/java-native-access/jna/pulls{/number}","milestones_url":"https://api.github.com/repos/java-native-access/jna/milestones{/number}","notifications_url":"https://api.github.com/repos/java-native-access/jna/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/java-native-access/jna/labels{/name}","releases_url":"https://api.github.com/repos/java-native-access/jna/releases{/id}","created_at":"2011-04-29T13:30:29Z","updated_at":"2016-01-11T01:01:33Z","pushed_at":"2016-01-11T00:00:49Z","git_url":"git://github.com/java-native-access/jna.git","ssh_url":"git@github.com:java-native-access/jna.git","clone_url":"https://github.com/java-native-access/jna.git","svn_url":"https://github.com/java-native-access/jna","homepage":"","size":257924,"stargazers_count":2090,"watchers_count":2090,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":613,"mirror_url":null,"open_issues_count":91,"forks":613,"open_issues":91,"watchers":2090,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/java-native-access/jna/pulls/251"},"html":{"href":"https://github.com/java-native-access/jna/pull/251"},"issue":{"href":"https://api.github.com/repos/java-native-access/jna/issues/251"},"comments":{"href":"https://api.github.com/repos/java-native-access/jna/issues/251/comments"},"review_comments":{"href":"https://api.github.com/repos/java-native-access/jna/pulls/251/comments"},"review_comment":{"href":"https://api.github.com/repos/java-native-access/jna/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/java-native-access/jna/pulls/251/commits"},"statuses":{"href":"https://api.github.com/repos/java-native-access/jna/statuses/600f3cbb3d2e62401f48d07b20cd7751e872228d"}}}}