{"action":"created","comment":{"url":"https://api.github.com/repos/xbmc/xbmc/pulls/comments/24396126","id":24396126,"diff_hunk":"@@ -529,4 +546,121 @@ bool CAddonCallbacksAddon::RemoveDirectory(const void* addonData, const char *st\n   return CDirectory::Remove(strPath);\n }\n \n+int CAddonCallbacksAddon::CPUInfo_GetUsedPercentage(const void* addonData)\n+{\n+  CAddonCallbacks* helper = (CAddonCallbacks*)addonData;\n+  if (!helper)\n+    return false;\n+\n+  return g_cpuInfo.getUsedPercentage();\n+}\n+\n+int CAddonCallbacksAddon::CPUInfo_GetCPUCount(const void* addonData)\n+{\n+  CAddonCallbacks* helper = (CAddonCallbacks*)addonData;\n+  if (!helper)\n+    return false;\n+\n+  return g_cpuInfo.getCPUCount();\n+}\n+\n+float CAddonCallbacksAddon::CPUInfo_GetCPUFrequency(const void* addonData)\n+{\n+  CAddonCallbacks* helper = (CAddonCallbacks*)addonData;\n+  if (!helper)\n+    return false;\n+\n+  return g_cpuInfo.GetCPUFeatures();","path":"xbmc/addons/AddonCallbacksAddon.cpp","position":59,"original_position":59,"commit_id":"4a4171935857db7a7cfd91405c2881aa24f5bf1f","original_commit_id":"4a4171935857db7a7cfd91405c2881aa24f5bf1f","user":{"login":"AlwinEsch","id":6879739,"avatar_url":"https://avatars.githubusercontent.com/u/6879739?v=3","gravatar_id":"","url":"https://api.github.com/users/AlwinEsch","html_url":"https://github.com/AlwinEsch","followers_url":"https://api.github.com/users/AlwinEsch/followers","following_url":"https://api.github.com/users/AlwinEsch/following{/other_user}","gists_url":"https://api.github.com/users/AlwinEsch/gists{/gist_id}","starred_url":"https://api.github.com/users/AlwinEsch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlwinEsch/subscriptions","organizations_url":"https://api.github.com/users/AlwinEsch/orgs","repos_url":"https://api.github.com/users/AlwinEsch/repos","events_url":"https://api.github.com/users/AlwinEsch/events{/privacy}","received_events_url":"https://api.github.com/users/AlwinEsch/received_events","type":"User","site_admin":false},"body":"Here the wrong function becomes called.","created_at":"2015-02-10T08:38:14Z","updated_at":"2015-02-10T08:38:14Z","html_url":"https://github.com/xbmc/xbmc/pull/6386#discussion_r24396126","pull_request_url":"https://api.github.com/repos/xbmc/xbmc/pulls/6386","_links":{"self":{"href":"https://api.github.com/repos/xbmc/xbmc/pulls/comments/24396126"},"html":{"href":"https://github.com/xbmc/xbmc/pull/6386#discussion_r24396126"},"pull_request":{"href":"https://api.github.com/repos/xbmc/xbmc/pulls/6386"}}},"pull_request":{"url":"https://api.github.com/repos/xbmc/xbmc/pulls/6386","id":28957257,"html_url":"https://github.com/xbmc/xbmc/pull/6386","diff_url":"https://github.com/xbmc/xbmc/pull/6386.diff","patch_url":"https://github.com/xbmc/xbmc/pull/6386.patch","issue_url":"https://api.github.com/repos/xbmc/xbmc/issues/6386","number":6386,"state":"open","locked":false,"title":"Added cpuInfo to libXBMC_addon","user":{"login":"AchimTuran","id":6927011,"avatar_url":"https://avatars.githubusercontent.com/u/6927011?v=3","gravatar_id":"","url":"https://api.github.com/users/AchimTuran","html_url":"https://github.com/AchimTuran","followers_url":"https://api.github.com/users/AchimTuran/followers","following_url":"https://api.github.com/users/AchimTuran/following{/other_user}","gists_url":"https://api.github.com/users/AchimTuran/gists{/gist_id}","starred_url":"https://api.github.com/users/AchimTuran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AchimTuran/subscriptions","organizations_url":"https://api.github.com/users/AchimTuran/orgs","repos_url":"https://api.github.com/users/AchimTuran/repos","events_url":"https://api.github.com/users/AchimTuran/events{/privacy}","received_events_url":"https://api.github.com/users/AchimTuran/received_events","type":"User","site_admin":false},"body":"I added the cpuInfo methods to libXBMC_addon. At the moment I only need CPUInfo_GetCPUFeatures() to get CPUFeatures bits (SSE, ...). I need this for the new adsp addons to activate or deactivate my optimized processing functions for SSE, AVX, ...\r\n\r\nShould I also add \"CPUInfo_GetTemperature\" and \"CPUInfo_GetCoreInfo\"?\r\nHow do we get the CPU Temperature on Windows? I don't see any functionality in \"CPUInfo.cpp\".","created_at":"2015-02-09T21:17:16Z","updated_at":"2015-02-10T08:38:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"879c5cbd54e41c0c96168803bc42fe6886aec922","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/xbmc/xbmc/pulls/6386/commits","review_comments_url":"https://api.github.com/repos/xbmc/xbmc/pulls/6386/comments","review_comment_url":"https://api.github.com/repos/xbmc/xbmc/pulls/comments/{number}","comments_url":"https://api.github.com/repos/xbmc/xbmc/issues/6386/comments","statuses_url":"https://api.github.com/repos/xbmc/xbmc/statuses/4a4171935857db7a7cfd91405c2881aa24f5bf1f","head":{"label":"AchimTuran:library.xbmc.addon-CPUFeatures","ref":"library.xbmc.addon-CPUFeatures","sha":"4a4171935857db7a7cfd91405c2881aa24f5bf1f","user":{"login":"AchimTuran","id":6927011,"avatar_url":"https://avatars.githubusercontent.com/u/6927011?v=3","gravatar_id":"","url":"https://api.github.com/users/AchimTuran","html_url":"https://github.com/AchimTuran","followers_url":"https://api.github.com/users/AchimTuran/followers","following_url":"https://api.github.com/users/AchimTuran/following{/other_user}","gists_url":"https://api.github.com/users/AchimTuran/gists{/gist_id}","starred_url":"https://api.github.com/users/AchimTuran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AchimTuran/subscriptions","organizations_url":"https://api.github.com/users/AchimTuran/orgs","repos_url":"https://api.github.com/users/AchimTuran/repos","events_url":"https://api.github.com/users/AchimTuran/events{/privacy}","received_events_url":"https://api.github.com/users/AchimTuran/received_events","type":"User","site_admin":false},"repo":{"id":25041109,"name":"kodi","full_name":"AchimTuran/kodi","owner":{"login":"AchimTuran","id":6927011,"avatar_url":"https://avatars.githubusercontent.com/u/6927011?v=3","gravatar_id":"","url":"https://api.github.com/users/AchimTuran","html_url":"https://github.com/AchimTuran","followers_url":"https://api.github.com/users/AchimTuran/followers","following_url":"https://api.github.com/users/AchimTuran/following{/other_user}","gists_url":"https://api.github.com/users/AchimTuran/gists{/gist_id}","starred_url":"https://api.github.com/users/AchimTuran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AchimTuran/subscriptions","organizations_url":"https://api.github.com/users/AchimTuran/orgs","repos_url":"https://api.github.com/users/AchimTuran/repos","events_url":"https://api.github.com/users/AchimTuran/events{/privacy}","received_events_url":"https://api.github.com/users/AchimTuran/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AchimTuran/kodi","description":"Kodi Main Repository","fork":true,"url":"https://api.github.com/repos/AchimTuran/kodi","forks_url":"https://api.github.com/repos/AchimTuran/kodi/forks","keys_url":"https://api.github.com/repos/AchimTuran/kodi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AchimTuran/kodi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AchimTuran/kodi/teams","hooks_url":"https://api.github.com/repos/AchimTuran/kodi/hooks","issue_events_url":"https://api.github.com/repos/AchimTuran/kodi/issues/events{/number}","events_url":"https://api.github.com/repos/AchimTuran/kodi/events","assignees_url":"https://api.github.com/repos/AchimTuran/kodi/assignees{/user}","branches_url":"https://api.github.com/repos/AchimTuran/kodi/branches{/branch}","tags_url":"https://api.github.com/repos/AchimTuran/kodi/tags","blobs_url":"https://api.github.com/repos/AchimTuran/kodi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AchimTuran/kodi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AchimTuran/kodi/git/refs{/sha}","trees_url":"https://api.github.com/repos/AchimTuran/kodi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AchimTuran/kodi/statuses/{sha}","languages_url":"https://api.github.com/repos/AchimTuran/kodi/languages","stargazers_url":"https://api.github.com/repos/AchimTuran/kodi/stargazers","contributors_url":"https://api.github.com/repos/AchimTuran/kodi/contributors","subscribers_url":"https://api.github.com/repos/AchimTuran/kodi/subscribers","subscription_url":"https://api.github.com/repos/AchimTuran/kodi/subscription","commits_url":"https://api.github.com/repos/AchimTuran/kodi/commits{/sha}","git_commits_url":"https://api.github.com/repos/AchimTuran/kodi/git/commits{/sha}","comments_url":"https://api.github.com/repos/AchimTuran/kodi/comments{/number}","issue_comment_url":"https://api.github.com/repos/AchimTuran/kodi/issues/comments/{number}","contents_url":"https://api.github.com/repos/AchimTuran/kodi/contents/{+path}","compare_url":"https://api.github.com/repos/AchimTuran/kodi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AchimTuran/kodi/merges","archive_url":"https://api.github.com/repos/AchimTuran/kodi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AchimTuran/kodi/downloads","issues_url":"https://api.github.com/repos/AchimTuran/kodi/issues{/number}","pulls_url":"https://api.github.com/repos/AchimTuran/kodi/pulls{/number}","milestones_url":"https://api.github.com/repos/AchimTuran/kodi/milestones{/number}","notifications_url":"https://api.github.com/repos/AchimTuran/kodi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AchimTuran/kodi/labels{/name}","releases_url":"https://api.github.com/repos/AchimTuran/kodi/releases{/id}","created_at":"2014-10-10T15:19:34Z","updated_at":"2015-02-07T12:32:33Z","pushed_at":"2015-02-09T21:09:47Z","git_url":"git://github.com/AchimTuran/kodi.git","ssh_url":"git@github.com:AchimTuran/kodi.git","clone_url":"https://github.com/AchimTuran/kodi.git","svn_url":"https://github.com/AchimTuran/kodi","homepage":"http://kodi.tv","size":492398,"stargazers_count":1,"watchers_count":1,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":false,"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":"xbmc:master","ref":"master","sha":"26936a902429c36aa3a8abd44b6ffa5a8d90bc1f","user":{"login":"xbmc","id":199122,"avatar_url":"https://avatars.githubusercontent.com/u/199122?v=3","gravatar_id":"","url":"https://api.github.com/users/xbmc","html_url":"https://github.com/xbmc","followers_url":"https://api.github.com/users/xbmc/followers","following_url":"https://api.github.com/users/xbmc/following{/other_user}","gists_url":"https://api.github.com/users/xbmc/gists{/gist_id}","starred_url":"https://api.github.com/users/xbmc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xbmc/subscriptions","organizations_url":"https://api.github.com/users/xbmc/orgs","repos_url":"https://api.github.com/users/xbmc/repos","events_url":"https://api.github.com/users/xbmc/events{/privacy}","received_events_url":"https://api.github.com/users/xbmc/received_events","type":"Organization","site_admin":false},"repo":{"id":1217614,"name":"xbmc","full_name":"xbmc/xbmc","owner":{"login":"xbmc","id":199122,"avatar_url":"https://avatars.githubusercontent.com/u/199122?v=3","gravatar_id":"","url":"https://api.github.com/users/xbmc","html_url":"https://github.com/xbmc","followers_url":"https://api.github.com/users/xbmc/followers","following_url":"https://api.github.com/users/xbmc/following{/other_user}","gists_url":"https://api.github.com/users/xbmc/gists{/gist_id}","starred_url":"https://api.github.com/users/xbmc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xbmc/subscriptions","organizations_url":"https://api.github.com/users/xbmc/orgs","repos_url":"https://api.github.com/users/xbmc/repos","events_url":"https://api.github.com/users/xbmc/events{/privacy}","received_events_url":"https://api.github.com/users/xbmc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/xbmc/xbmc","description":"Kodi Main Repository - By using this code you agree with our policy and will follow the GPLv2 license as included","fork":false,"url":"https://api.github.com/repos/xbmc/xbmc","forks_url":"https://api.github.com/repos/xbmc/xbmc/forks","keys_url":"https://api.github.com/repos/xbmc/xbmc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xbmc/xbmc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xbmc/xbmc/teams","hooks_url":"https://api.github.com/repos/xbmc/xbmc/hooks","issue_events_url":"https://api.github.com/repos/xbmc/xbmc/issues/events{/number}","events_url":"https://api.github.com/repos/xbmc/xbmc/events","assignees_url":"https://api.github.com/repos/xbmc/xbmc/assignees{/user}","branches_url":"https://api.github.com/repos/xbmc/xbmc/branches{/branch}","tags_url":"https://api.github.com/repos/xbmc/xbmc/tags","blobs_url":"https://api.github.com/repos/xbmc/xbmc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xbmc/xbmc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xbmc/xbmc/git/refs{/sha}","trees_url":"https://api.github.com/repos/xbmc/xbmc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xbmc/xbmc/statuses/{sha}","languages_url":"https://api.github.com/repos/xbmc/xbmc/languages","stargazers_url":"https://api.github.com/repos/xbmc/xbmc/stargazers","contributors_url":"https://api.github.com/repos/xbmc/xbmc/contributors","subscribers_url":"https://api.github.com/repos/xbmc/xbmc/subscribers","subscription_url":"https://api.github.com/repos/xbmc/xbmc/subscription","commits_url":"https://api.github.com/repos/xbmc/xbmc/commits{/sha}","git_commits_url":"https://api.github.com/repos/xbmc/xbmc/git/commits{/sha}","comments_url":"https://api.github.com/repos/xbmc/xbmc/comments{/number}","issue_comment_url":"https://api.github.com/repos/xbmc/xbmc/issues/comments/{number}","contents_url":"https://api.github.com/repos/xbmc/xbmc/contents/{+path}","compare_url":"https://api.github.com/repos/xbmc/xbmc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xbmc/xbmc/merges","archive_url":"https://api.github.com/repos/xbmc/xbmc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xbmc/xbmc/downloads","issues_url":"https://api.github.com/repos/xbmc/xbmc/issues{/number}","pulls_url":"https://api.github.com/repos/xbmc/xbmc/pulls{/number}","milestones_url":"https://api.github.com/repos/xbmc/xbmc/milestones{/number}","notifications_url":"https://api.github.com/repos/xbmc/xbmc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xbmc/xbmc/labels{/name}","releases_url":"https://api.github.com/repos/xbmc/xbmc/releases{/id}","created_at":"2011-01-03T21:18:51Z","updated_at":"2015-02-10T07:51:02Z","pushed_at":"2015-02-10T07:51:00Z","git_url":"git://github.com/xbmc/xbmc.git","ssh_url":"git@github.com:xbmc/xbmc.git","clone_url":"https://github.com/xbmc/xbmc.git","svn_url":"https://github.com/xbmc/xbmc","homepage":"http://kodi.wiki/view/Official:Trademark_Policy","size":1806854,"stargazers_count":3689,"watchers_count":3689,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2664,"mirror_url":null,"open_issues_count":241,"forks":2664,"open_issues":241,"watchers":3689,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/xbmc/xbmc/pulls/6386"},"html":{"href":"https://github.com/xbmc/xbmc/pull/6386"},"issue":{"href":"https://api.github.com/repos/xbmc/xbmc/issues/6386"},"comments":{"href":"https://api.github.com/repos/xbmc/xbmc/issues/6386/comments"},"review_comments":{"href":"https://api.github.com/repos/xbmc/xbmc/pulls/6386/comments"},"review_comment":{"href":"https://api.github.com/repos/xbmc/xbmc/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/xbmc/xbmc/pulls/6386/commits"},"statuses":{"href":"https://api.github.com/repos/xbmc/xbmc/statuses/4a4171935857db7a7cfd91405c2881aa24f5bf1f"}}}}