{"action":"created","comment":{"url":"https://api.github.com/repos/OpenLightingProject/ola/pulls/comments/90757622","pull_request_review_id":11277465,"id":90757622,"diff_hunk":"@@ -0,0 +1,62 @@\n+/*\n+ * This program is free software; you can redistribute it and/or modify\n+ * it under the terms of the GNU General Public License as published by\n+ * the Free Software Foundation; either version 2 of the License, or\n+ * (at your option) any later version.\n+ *\n+ * This program is distributed in the hope that it will be useful,\n+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+ * GNU Library General Public License for more details.\n+ *\n+ * You should have received a copy of the GNU General Public License\n+ * along with this program; if not, write to the Free Software\n+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\n+ *\n+ * ShowJockeyFactory.cpp\n+ * The WidgetFactory for ShowJockey widgets.\n+ * Copyright (C) 2016 Nicolas Bertrand\n+ */\n+\n+#include \"plugins/usbdmx/ShowJockeyFactory.h\"\n+\n+#include \"libs/usb/LibUsbAdaptor.h\"\n+#include \"ola/Logging.h\"\n+#include \"ola/base/Flags.h\"\n+\n+DECLARE_bool(use_async_libusb);\n+\n+namespace ola {\n+namespace plugin {\n+namespace usbdmx {\n+\n+using ola::usb::LibUsbAdaptor;\n+\n+const uint16_t ShowJockeyFactory::PRODUCT_ID = 0x57fe;\n+const uint16_t ShowJockeyFactory::VENDOR_ID = 0x0483;\n+\n+bool ShowJockeyFactory::DeviceAdded(\n+    WidgetObserver *observer,\n+    libusb_device *usb_device,\n+    const struct libusb_device_descriptor &descriptor) {\n+  if (descriptor.idVendor != VENDOR_ID || descriptor.idProduct != PRODUCT_ID) {\n+    return false;\n+  }\n+","path":"plugins/usbdmx/ShowJockeyFactory.cpp","position":48,"original_position":45,"commit_id":"d46c0360984bf8e9d1f923064c568eea6f2c7c48","original_commit_id":"70f24ebbe127617ddc26f23e7f38874d3671bbb6","user":{"login":"peternewman","id":6216436,"avatar_url":"https://avatars.githubusercontent.com/u/6216436?v=3","gravatar_id":"","url":"https://api.github.com/users/peternewman","html_url":"https://github.com/peternewman","followers_url":"https://api.github.com/users/peternewman/followers","following_url":"https://api.github.com/users/peternewman/following{/other_user}","gists_url":"https://api.github.com/users/peternewman/gists{/gist_id}","starred_url":"https://api.github.com/users/peternewman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peternewman/subscriptions","organizations_url":"https://api.github.com/users/peternewman/orgs","repos_url":"https://api.github.com/users/peternewman/repos","events_url":"https://api.github.com/users/peternewman/events{/privacy}","received_events_url":"https://api.github.com/users/peternewman/received_events","type":"User","site_admin":false},"body":"Thanks","created_at":"2016-12-03T14:02:46Z","updated_at":"2016-12-03T14:02:46Z","html_url":"https://github.com/OpenLightingProject/ola/pull/1147#discussion_r90757622","pull_request_url":"https://api.github.com/repos/OpenLightingProject/ola/pulls/1147","_links":{"self":{"href":"https://api.github.com/repos/OpenLightingProject/ola/pulls/comments/90757622"},"html":{"href":"https://github.com/OpenLightingProject/ola/pull/1147#discussion_r90757622"},"pull_request":{"href":"https://api.github.com/repos/OpenLightingProject/ola/pulls/1147"}}},"pull_request":{"url":"https://api.github.com/repos/OpenLightingProject/ola/pulls/1147","id":92599475,"html_url":"https://github.com/OpenLightingProject/ola/pull/1147","diff_url":"https://github.com/OpenLightingProject/ola/pull/1147.diff","patch_url":"https://github.com/OpenLightingProject/ola/pull/1147.patch","issue_url":"https://api.github.com/repos/OpenLightingProject/ola/issues/1147","number":1147,"state":"open","locked":false,"title":"Support ShowJockey devices","user":{"login":"nbeAnomes","id":11715959,"avatar_url":"https://avatars.githubusercontent.com/u/11715959?v=3","gravatar_id":"","url":"https://api.github.com/users/nbeAnomes","html_url":"https://github.com/nbeAnomes","followers_url":"https://api.github.com/users/nbeAnomes/followers","following_url":"https://api.github.com/users/nbeAnomes/following{/other_user}","gists_url":"https://api.github.com/users/nbeAnomes/gists{/gist_id}","starred_url":"https://api.github.com/users/nbeAnomes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nbeAnomes/subscriptions","organizations_url":"https://api.github.com/users/nbeAnomes/orgs","repos_url":"https://api.github.com/users/nbeAnomes/repos","events_url":"https://api.github.com/users/nbeAnomes/events{/privacy}","received_events_url":"https://api.github.com/users/nbeAnomes/received_events","type":"User","site_admin":false},"body":"Hello,\r\nI created a new widget to handle [ShowJockey DMX USB controller](http://www.showjockey.com/products/led-controller/dmx-usb-controller-sj-dmx-u1) in the usbdmx plugin.\r\nLet me know if it's ok for you.\r\n\r\n","created_at":"2016-11-07T15:05:51Z","updated_at":"2016-12-03T14:02:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"138bea99304a7b0a0c0df8760179abaeb6869da5","assignee":{"login":"peternewman","id":6216436,"avatar_url":"https://avatars.githubusercontent.com/u/6216436?v=3","gravatar_id":"","url":"https://api.github.com/users/peternewman","html_url":"https://github.com/peternewman","followers_url":"https://api.github.com/users/peternewman/followers","following_url":"https://api.github.com/users/peternewman/following{/other_user}","gists_url":"https://api.github.com/users/peternewman/gists{/gist_id}","starred_url":"https://api.github.com/users/peternewman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peternewman/subscriptions","organizations_url":"https://api.github.com/users/peternewman/orgs","repos_url":"https://api.github.com/users/peternewman/repos","events_url":"https://api.github.com/users/peternewman/events{/privacy}","received_events_url":"https://api.github.com/users/peternewman/received_events","type":"User","site_admin":false},"assignees":[{"login":"peternewman","id":6216436,"avatar_url":"https://avatars.githubusercontent.com/u/6216436?v=3","gravatar_id":"","url":"https://api.github.com/users/peternewman","html_url":"https://github.com/peternewman","followers_url":"https://api.github.com/users/peternewman/followers","following_url":"https://api.github.com/users/peternewman/following{/other_user}","gists_url":"https://api.github.com/users/peternewman/gists{/gist_id}","starred_url":"https://api.github.com/users/peternewman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peternewman/subscriptions","organizations_url":"https://api.github.com/users/peternewman/orgs","repos_url":"https://api.github.com/users/peternewman/repos","events_url":"https://api.github.com/users/peternewman/events{/privacy}","received_events_url":"https://api.github.com/users/peternewman/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/OpenLightingProject/ola/milestones/9","html_url":"https://github.com/OpenLightingProject/ola/milestones/0.11.0","labels_url":"https://api.github.com/repos/OpenLightingProject/ola/milestones/9/labels","id":1457508,"number":9,"title":"0.11.0","description":"New features","creator":{"login":"peternewman","id":6216436,"avatar_url":"https://avatars.githubusercontent.com/u/6216436?v=3","gravatar_id":"","url":"https://api.github.com/users/peternewman","html_url":"https://github.com/peternewman","followers_url":"https://api.github.com/users/peternewman/followers","following_url":"https://api.github.com/users/peternewman/following{/other_user}","gists_url":"https://api.github.com/users/peternewman/gists{/gist_id}","starred_url":"https://api.github.com/users/peternewman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peternewman/subscriptions","organizations_url":"https://api.github.com/users/peternewman/orgs","repos_url":"https://api.github.com/users/peternewman/repos","events_url":"https://api.github.com/users/peternewman/events{/privacy}","received_events_url":"https://api.github.com/users/peternewman/received_events","type":"User","site_admin":false},"open_issues":14,"closed_issues":48,"state":"open","created_at":"2015-12-12T22:03:07Z","updated_at":"2016-12-02T20:59:02Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/OpenLightingProject/ola/pulls/1147/commits","review_comments_url":"https://api.github.com/repos/OpenLightingProject/ola/pulls/1147/comments","review_comment_url":"https://api.github.com/repos/OpenLightingProject/ola/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OpenLightingProject/ola/issues/1147/comments","statuses_url":"https://api.github.com/repos/OpenLightingProject/ola/statuses/d46c0360984bf8e9d1f923064c568eea6f2c7c48","head":{"label":"nbeAnomes:master","ref":"master","sha":"d46c0360984bf8e9d1f923064c568eea6f2c7c48","user":{"login":"nbeAnomes","id":11715959,"avatar_url":"https://avatars.githubusercontent.com/u/11715959?v=3","gravatar_id":"","url":"https://api.github.com/users/nbeAnomes","html_url":"https://github.com/nbeAnomes","followers_url":"https://api.github.com/users/nbeAnomes/followers","following_url":"https://api.github.com/users/nbeAnomes/following{/other_user}","gists_url":"https://api.github.com/users/nbeAnomes/gists{/gist_id}","starred_url":"https://api.github.com/users/nbeAnomes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nbeAnomes/subscriptions","organizations_url":"https://api.github.com/users/nbeAnomes/orgs","repos_url":"https://api.github.com/users/nbeAnomes/repos","events_url":"https://api.github.com/users/nbeAnomes/events{/privacy}","received_events_url":"https://api.github.com/users/nbeAnomes/received_events","type":"User","site_admin":false},"repo":{"id":73084288,"name":"ola","full_name":"nbeAnomes/ola","owner":{"login":"nbeAnomes","id":11715959,"avatar_url":"https://avatars.githubusercontent.com/u/11715959?v=3","gravatar_id":"","url":"https://api.github.com/users/nbeAnomes","html_url":"https://github.com/nbeAnomes","followers_url":"https://api.github.com/users/nbeAnomes/followers","following_url":"https://api.github.com/users/nbeAnomes/following{/other_user}","gists_url":"https://api.github.com/users/nbeAnomes/gists{/gist_id}","starred_url":"https://api.github.com/users/nbeAnomes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nbeAnomes/subscriptions","organizations_url":"https://api.github.com/users/nbeAnomes/orgs","repos_url":"https://api.github.com/users/nbeAnomes/repos","events_url":"https://api.github.com/users/nbeAnomes/events{/privacy}","received_events_url":"https://api.github.com/users/nbeAnomes/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nbeAnomes/ola","description":"The Open Lighting Architecture","fork":true,"url":"https://api.github.com/repos/nbeAnomes/ola","forks_url":"https://api.github.com/repos/nbeAnomes/ola/forks","keys_url":"https://api.github.com/repos/nbeAnomes/ola/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nbeAnomes/ola/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nbeAnomes/ola/teams","hooks_url":"https://api.github.com/repos/nbeAnomes/ola/hooks","issue_events_url":"https://api.github.com/repos/nbeAnomes/ola/issues/events{/number}","events_url":"https://api.github.com/repos/nbeAnomes/ola/events","assignees_url":"https://api.github.com/repos/nbeAnomes/ola/assignees{/user}","branches_url":"https://api.github.com/repos/nbeAnomes/ola/branches{/branch}","tags_url":"https://api.github.com/repos/nbeAnomes/ola/tags","blobs_url":"https://api.github.com/repos/nbeAnomes/ola/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nbeAnomes/ola/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nbeAnomes/ola/git/refs{/sha}","trees_url":"https://api.github.com/repos/nbeAnomes/ola/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nbeAnomes/ola/statuses/{sha}","languages_url":"https://api.github.com/repos/nbeAnomes/ola/languages","stargazers_url":"https://api.github.com/repos/nbeAnomes/ola/stargazers","contributors_url":"https://api.github.com/repos/nbeAnomes/ola/contributors","subscribers_url":"https://api.github.com/repos/nbeAnomes/ola/subscribers","subscription_url":"https://api.github.com/repos/nbeAnomes/ola/subscription","commits_url":"https://api.github.com/repos/nbeAnomes/ola/commits{/sha}","git_commits_url":"https://api.github.com/repos/nbeAnomes/ola/git/commits{/sha}","comments_url":"https://api.github.com/repos/nbeAnomes/ola/comments{/number}","issue_comment_url":"https://api.github.com/repos/nbeAnomes/ola/issues/comments{/number}","contents_url":"https://api.github.com/repos/nbeAnomes/ola/contents/{+path}","compare_url":"https://api.github.com/repos/nbeAnomes/ola/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nbeAnomes/ola/merges","archive_url":"https://api.github.com/repos/nbeAnomes/ola/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nbeAnomes/ola/downloads","issues_url":"https://api.github.com/repos/nbeAnomes/ola/issues{/number}","pulls_url":"https://api.github.com/repos/nbeAnomes/ola/pulls{/number}","milestones_url":"https://api.github.com/repos/nbeAnomes/ola/milestones{/number}","notifications_url":"https://api.github.com/repos/nbeAnomes/ola/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nbeAnomes/ola/labels{/name}","releases_url":"https://api.github.com/repos/nbeAnomes/ola/releases{/id}","deployments_url":"https://api.github.com/repos/nbeAnomes/ola/deployments","created_at":"2016-11-07T14:06:06Z","updated_at":"2016-11-07T14:06:10Z","pushed_at":"2016-12-02T23:52:37Z","git_url":"git://github.com/nbeAnomes/ola.git","ssh_url":"git@github.com:nbeAnomes/ola.git","clone_url":"https://github.com/nbeAnomes/ola.git","svn_url":"https://github.com/nbeAnomes/ola","homepage":"https://www.openlighting.org/ola/","size":20457,"stargazers_count":0,"watchers_count":0,"language":"C++","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":0,"default_branch":"master"}},"base":{"label":"OpenLightingProject:master","ref":"master","sha":"98a3253c674d597e305cef527b271aec1eda5b10","user":{"login":"OpenLightingProject","id":6199314,"avatar_url":"https://avatars.githubusercontent.com/u/6199314?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenLightingProject","html_url":"https://github.com/OpenLightingProject","followers_url":"https://api.github.com/users/OpenLightingProject/followers","following_url":"https://api.github.com/users/OpenLightingProject/following{/other_user}","gists_url":"https://api.github.com/users/OpenLightingProject/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenLightingProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenLightingProject/subscriptions","organizations_url":"https://api.github.com/users/OpenLightingProject/orgs","repos_url":"https://api.github.com/users/OpenLightingProject/repos","events_url":"https://api.github.com/users/OpenLightingProject/events{/privacy}","received_events_url":"https://api.github.com/users/OpenLightingProject/received_events","type":"Organization","site_admin":false},"repo":{"id":15233168,"name":"ola","full_name":"OpenLightingProject/ola","owner":{"login":"OpenLightingProject","id":6199314,"avatar_url":"https://avatars.githubusercontent.com/u/6199314?v=3","gravatar_id":"","url":"https://api.github.com/users/OpenLightingProject","html_url":"https://github.com/OpenLightingProject","followers_url":"https://api.github.com/users/OpenLightingProject/followers","following_url":"https://api.github.com/users/OpenLightingProject/following{/other_user}","gists_url":"https://api.github.com/users/OpenLightingProject/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenLightingProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenLightingProject/subscriptions","organizations_url":"https://api.github.com/users/OpenLightingProject/orgs","repos_url":"https://api.github.com/users/OpenLightingProject/repos","events_url":"https://api.github.com/users/OpenLightingProject/events{/privacy}","received_events_url":"https://api.github.com/users/OpenLightingProject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenLightingProject/ola","description":"The Open Lighting Architecture","fork":false,"url":"https://api.github.com/repos/OpenLightingProject/ola","forks_url":"https://api.github.com/repos/OpenLightingProject/ola/forks","keys_url":"https://api.github.com/repos/OpenLightingProject/ola/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenLightingProject/ola/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenLightingProject/ola/teams","hooks_url":"https://api.github.com/repos/OpenLightingProject/ola/hooks","issue_events_url":"https://api.github.com/repos/OpenLightingProject/ola/issues/events{/number}","events_url":"https://api.github.com/repos/OpenLightingProject/ola/events","assignees_url":"https://api.github.com/repos/OpenLightingProject/ola/assignees{/user}","branches_url":"https://api.github.com/repos/OpenLightingProject/ola/branches{/branch}","tags_url":"https://api.github.com/repos/OpenLightingProject/ola/tags","blobs_url":"https://api.github.com/repos/OpenLightingProject/ola/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenLightingProject/ola/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenLightingProject/ola/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenLightingProject/ola/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenLightingProject/ola/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenLightingProject/ola/languages","stargazers_url":"https://api.github.com/repos/OpenLightingProject/ola/stargazers","contributors_url":"https://api.github.com/repos/OpenLightingProject/ola/contributors","subscribers_url":"https://api.github.com/repos/OpenLightingProject/ola/subscribers","subscription_url":"https://api.github.com/repos/OpenLightingProject/ola/subscription","commits_url":"https://api.github.com/repos/OpenLightingProject/ola/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenLightingProject/ola/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenLightingProject/ola/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenLightingProject/ola/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenLightingProject/ola/contents/{+path}","compare_url":"https://api.github.com/repos/OpenLightingProject/ola/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenLightingProject/ola/merges","archive_url":"https://api.github.com/repos/OpenLightingProject/ola/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenLightingProject/ola/downloads","issues_url":"https://api.github.com/repos/OpenLightingProject/ola/issues{/number}","pulls_url":"https://api.github.com/repos/OpenLightingProject/ola/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenLightingProject/ola/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenLightingProject/ola/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenLightingProject/ola/labels{/name}","releases_url":"https://api.github.com/repos/OpenLightingProject/ola/releases{/id}","deployments_url":"https://api.github.com/repos/OpenLightingProject/ola/deployments","created_at":"2013-12-16T18:06:52Z","updated_at":"2016-12-02T06:54:33Z","pushed_at":"2016-12-03T12:12:21Z","git_url":"git://github.com/OpenLightingProject/ola.git","ssh_url":"git@github.com:OpenLightingProject/ola.git","clone_url":"https://github.com/OpenLightingProject/ola.git","svn_url":"https://github.com/OpenLightingProject/ola","homepage":"https://www.openlighting.org/ola/","size":24243,"stargazers_count":164,"watchers_count":164,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":81,"mirror_url":null,"open_issues_count":118,"forks":81,"open_issues":118,"watchers":164,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OpenLightingProject/ola/pulls/1147"},"html":{"href":"https://github.com/OpenLightingProject/ola/pull/1147"},"issue":{"href":"https://api.github.com/repos/OpenLightingProject/ola/issues/1147"},"comments":{"href":"https://api.github.com/repos/OpenLightingProject/ola/issues/1147/comments"},"review_comments":{"href":"https://api.github.com/repos/OpenLightingProject/ola/pulls/1147/comments"},"review_comment":{"href":"https://api.github.com/repos/OpenLightingProject/ola/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OpenLightingProject/ola/pulls/1147/commits"},"statuses":{"href":"https://api.github.com/repos/OpenLightingProject/ola/statuses/d46c0360984bf8e9d1f923064c568eea6f2c7c48"}}}}
{"actor":{"display_login":"peternewman"}}