{"action":"created","comment":{"url":"https://api.github.com/repos/BBN-Q/libx6/pulls/comments/25948963","id":25948963,"diff_hunk":"@@ -6,20 +6,30 @@\n  */\n \n #include \"headings.h\"\n-#include \"X6_1000.h\"\n #include \"libx6adc.h\"\n+#include \"X6_1000.h\"\n \n // globals\n map<unsigned, std::unique_ptr<X6_1000>> X6s_;\n unsigned numDevices_ = 0;\n \n+const char* get_error_msg(X6_STATUS err) {\n+\tif (errorsMsgs.count(err)) {\n+\t\treturn errorsMsgs[err].c_str();\n+\t}\n+\telse {\n+\t\treturn \"No error message for this status number.\";\n+\t}\n+}\n+\n // initialize the library --contructor hook in header\n void init() {\n \t//Open the logging file\n \tFILE* pFile = fopen(\"libx6.log\", \"a\");\n \tOutput2FILE::Stream() = pFile;\n \n-\tnumDevices_ = get_num_devices();\n+\tstatic Innovative::X6_1000M x6;","path":"src/lib/libx6adc.cpp","position":28,"original_position":28,"commit_id":"deb8882b0006e1dc0996e0c334d92cad7ee6459d","original_commit_id":"deb8882b0006e1dc0996e0c334d92cad7ee6459d","user":{"login":"blakejohnson","id":866695,"avatar_url":"https://avatars.githubusercontent.com/u/866695?v=3","gravatar_id":"","url":"https://api.github.com/users/blakejohnson","html_url":"https://github.com/blakejohnson","followers_url":"https://api.github.com/users/blakejohnson/followers","following_url":"https://api.github.com/users/blakejohnson/following{/other_user}","gists_url":"https://api.github.com/users/blakejohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/blakejohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blakejohnson/subscriptions","organizations_url":"https://api.github.com/users/blakejohnson/orgs","repos_url":"https://api.github.com/users/blakejohnson/repos","events_url":"https://api.github.com/users/blakejohnson/events{/privacy}","received_events_url":"https://api.github.com/users/blakejohnson/received_events","type":"User","site_admin":false},"body":"Why is this `static`?","created_at":"2015-03-06T14:54:10Z","updated_at":"2015-03-06T14:54:10Z","html_url":"https://github.com/BBN-Q/libx6/pull/6#discussion_r25948963","pull_request_url":"https://api.github.com/repos/BBN-Q/libx6/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/BBN-Q/libx6/pulls/comments/25948963"},"html":{"href":"https://github.com/BBN-Q/libx6/pull/6#discussion_r25948963"},"pull_request":{"href":"https://api.github.com/repos/BBN-Q/libx6/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/BBN-Q/libx6/pulls/6","id":30600237,"html_url":"https://github.com/BBN-Q/libx6/pull/6","diff_url":"https://github.com/BBN-Q/libx6/pull/6.diff","patch_url":"https://github.com/BBN-Q/libx6/pull/6.patch","issue_url":"https://api.github.com/repos/BBN-Q/libx6/issues/6","number":6,"state":"open","locked":false,"title":"Feature/errno","user":{"login":"caryan","id":1385106,"avatar_url":"https://avatars.githubusercontent.com/u/1385106?v=3","gravatar_id":"","url":"https://api.github.com/users/caryan","html_url":"https://github.com/caryan","followers_url":"https://api.github.com/users/caryan/followers","following_url":"https://api.github.com/users/caryan/following{/other_user}","gists_url":"https://api.github.com/users/caryan/gists{/gist_id}","starred_url":"https://api.github.com/users/caryan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caryan/subscriptions","organizations_url":"https://api.github.com/users/caryan/orgs","repos_url":"https://api.github.com/users/caryan/repos","events_url":"https://api.github.com/users/caryan/events{/privacy}","received_events_url":"https://api.github.com/users/caryan/received_events","type":"User","site_admin":false},"body":"It's a big rewrite of the API so @blakejohnson should have a look.","created_at":"2015-03-05T22:02:33Z","updated_at":"2015-03-06T14:54:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6b7126ff2e6e65a2630ede6acc6ba742f0636342","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/BBN-Q/libx6/pulls/6/commits","review_comments_url":"https://api.github.com/repos/BBN-Q/libx6/pulls/6/comments","review_comment_url":"https://api.github.com/repos/BBN-Q/libx6/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BBN-Q/libx6/issues/6/comments","statuses_url":"https://api.github.com/repos/BBN-Q/libx6/statuses/deb8882b0006e1dc0996e0c334d92cad7ee6459d","head":{"label":"BBN-Q:feature/errno","ref":"feature/errno","sha":"deb8882b0006e1dc0996e0c334d92cad7ee6459d","user":{"login":"BBN-Q","id":1385056,"avatar_url":"https://avatars.githubusercontent.com/u/1385056?v=3","gravatar_id":"","url":"https://api.github.com/users/BBN-Q","html_url":"https://github.com/BBN-Q","followers_url":"https://api.github.com/users/BBN-Q/followers","following_url":"https://api.github.com/users/BBN-Q/following{/other_user}","gists_url":"https://api.github.com/users/BBN-Q/gists{/gist_id}","starred_url":"https://api.github.com/users/BBN-Q/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BBN-Q/subscriptions","organizations_url":"https://api.github.com/users/BBN-Q/orgs","repos_url":"https://api.github.com/users/BBN-Q/repos","events_url":"https://api.github.com/users/BBN-Q/events{/privacy}","received_events_url":"https://api.github.com/users/BBN-Q/received_events","type":"Organization","site_admin":false},"repo":{"id":21251021,"name":"libx6","full_name":"BBN-Q/libx6","owner":{"login":"BBN-Q","id":1385056,"avatar_url":"https://avatars.githubusercontent.com/u/1385056?v=3","gravatar_id":"","url":"https://api.github.com/users/BBN-Q","html_url":"https://github.com/BBN-Q","followers_url":"https://api.github.com/users/BBN-Q/followers","following_url":"https://api.github.com/users/BBN-Q/following{/other_user}","gists_url":"https://api.github.com/users/BBN-Q/gists{/gist_id}","starred_url":"https://api.github.com/users/BBN-Q/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BBN-Q/subscriptions","organizations_url":"https://api.github.com/users/BBN-Q/orgs","repos_url":"https://api.github.com/users/BBN-Q/repos","events_url":"https://api.github.com/users/BBN-Q/events{/privacy}","received_events_url":"https://api.github.com/users/BBN-Q/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BBN-Q/libx6","description":"C/C++ driver for BBN X6-1000 firmware","fork":false,"url":"https://api.github.com/repos/BBN-Q/libx6","forks_url":"https://api.github.com/repos/BBN-Q/libx6/forks","keys_url":"https://api.github.com/repos/BBN-Q/libx6/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BBN-Q/libx6/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BBN-Q/libx6/teams","hooks_url":"https://api.github.com/repos/BBN-Q/libx6/hooks","issue_events_url":"https://api.github.com/repos/BBN-Q/libx6/issues/events{/number}","events_url":"https://api.github.com/repos/BBN-Q/libx6/events","assignees_url":"https://api.github.com/repos/BBN-Q/libx6/assignees{/user}","branches_url":"https://api.github.com/repos/BBN-Q/libx6/branches{/branch}","tags_url":"https://api.github.com/repos/BBN-Q/libx6/tags","blobs_url":"https://api.github.com/repos/BBN-Q/libx6/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BBN-Q/libx6/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BBN-Q/libx6/git/refs{/sha}","trees_url":"https://api.github.com/repos/BBN-Q/libx6/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BBN-Q/libx6/statuses/{sha}","languages_url":"https://api.github.com/repos/BBN-Q/libx6/languages","stargazers_url":"https://api.github.com/repos/BBN-Q/libx6/stargazers","contributors_url":"https://api.github.com/repos/BBN-Q/libx6/contributors","subscribers_url":"https://api.github.com/repos/BBN-Q/libx6/subscribers","subscription_url":"https://api.github.com/repos/BBN-Q/libx6/subscription","commits_url":"https://api.github.com/repos/BBN-Q/libx6/commits{/sha}","git_commits_url":"https://api.github.com/repos/BBN-Q/libx6/git/commits{/sha}","comments_url":"https://api.github.com/repos/BBN-Q/libx6/comments{/number}","issue_comment_url":"https://api.github.com/repos/BBN-Q/libx6/issues/comments{/number}","contents_url":"https://api.github.com/repos/BBN-Q/libx6/contents/{+path}","compare_url":"https://api.github.com/repos/BBN-Q/libx6/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BBN-Q/libx6/merges","archive_url":"https://api.github.com/repos/BBN-Q/libx6/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BBN-Q/libx6/downloads","issues_url":"https://api.github.com/repos/BBN-Q/libx6/issues{/number}","pulls_url":"https://api.github.com/repos/BBN-Q/libx6/pulls{/number}","milestones_url":"https://api.github.com/repos/BBN-Q/libx6/milestones{/number}","notifications_url":"https://api.github.com/repos/BBN-Q/libx6/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BBN-Q/libx6/labels{/name}","releases_url":"https://api.github.com/repos/BBN-Q/libx6/releases{/id}","created_at":"2014-06-26T18:44:33Z","updated_at":"2015-03-04T21:37:20Z","pushed_at":"2015-03-05T22:01:28Z","git_url":"git://github.com/BBN-Q/libx6.git","ssh_url":"git@github.com:BBN-Q/libx6.git","clone_url":"https://github.com/BBN-Q/libx6.git","svn_url":"https://github.com/BBN-Q/libx6","homepage":null,"size":728,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"BBN-Q:master","ref":"master","sha":"9a33b9f2b28567e5e33147cdbe360c479cdf3d05","user":{"login":"BBN-Q","id":1385056,"avatar_url":"https://avatars.githubusercontent.com/u/1385056?v=3","gravatar_id":"","url":"https://api.github.com/users/BBN-Q","html_url":"https://github.com/BBN-Q","followers_url":"https://api.github.com/users/BBN-Q/followers","following_url":"https://api.github.com/users/BBN-Q/following{/other_user}","gists_url":"https://api.github.com/users/BBN-Q/gists{/gist_id}","starred_url":"https://api.github.com/users/BBN-Q/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BBN-Q/subscriptions","organizations_url":"https://api.github.com/users/BBN-Q/orgs","repos_url":"https://api.github.com/users/BBN-Q/repos","events_url":"https://api.github.com/users/BBN-Q/events{/privacy}","received_events_url":"https://api.github.com/users/BBN-Q/received_events","type":"Organization","site_admin":false},"repo":{"id":21251021,"name":"libx6","full_name":"BBN-Q/libx6","owner":{"login":"BBN-Q","id":1385056,"avatar_url":"https://avatars.githubusercontent.com/u/1385056?v=3","gravatar_id":"","url":"https://api.github.com/users/BBN-Q","html_url":"https://github.com/BBN-Q","followers_url":"https://api.github.com/users/BBN-Q/followers","following_url":"https://api.github.com/users/BBN-Q/following{/other_user}","gists_url":"https://api.github.com/users/BBN-Q/gists{/gist_id}","starred_url":"https://api.github.com/users/BBN-Q/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BBN-Q/subscriptions","organizations_url":"https://api.github.com/users/BBN-Q/orgs","repos_url":"https://api.github.com/users/BBN-Q/repos","events_url":"https://api.github.com/users/BBN-Q/events{/privacy}","received_events_url":"https://api.github.com/users/BBN-Q/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BBN-Q/libx6","description":"C/C++ driver for BBN X6-1000 firmware","fork":false,"url":"https://api.github.com/repos/BBN-Q/libx6","forks_url":"https://api.github.com/repos/BBN-Q/libx6/forks","keys_url":"https://api.github.com/repos/BBN-Q/libx6/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BBN-Q/libx6/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BBN-Q/libx6/teams","hooks_url":"https://api.github.com/repos/BBN-Q/libx6/hooks","issue_events_url":"https://api.github.com/repos/BBN-Q/libx6/issues/events{/number}","events_url":"https://api.github.com/repos/BBN-Q/libx6/events","assignees_url":"https://api.github.com/repos/BBN-Q/libx6/assignees{/user}","branches_url":"https://api.github.com/repos/BBN-Q/libx6/branches{/branch}","tags_url":"https://api.github.com/repos/BBN-Q/libx6/tags","blobs_url":"https://api.github.com/repos/BBN-Q/libx6/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BBN-Q/libx6/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BBN-Q/libx6/git/refs{/sha}","trees_url":"https://api.github.com/repos/BBN-Q/libx6/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BBN-Q/libx6/statuses/{sha}","languages_url":"https://api.github.com/repos/BBN-Q/libx6/languages","stargazers_url":"https://api.github.com/repos/BBN-Q/libx6/stargazers","contributors_url":"https://api.github.com/repos/BBN-Q/libx6/contributors","subscribers_url":"https://api.github.com/repos/BBN-Q/libx6/subscribers","subscription_url":"https://api.github.com/repos/BBN-Q/libx6/subscription","commits_url":"https://api.github.com/repos/BBN-Q/libx6/commits{/sha}","git_commits_url":"https://api.github.com/repos/BBN-Q/libx6/git/commits{/sha}","comments_url":"https://api.github.com/repos/BBN-Q/libx6/comments{/number}","issue_comment_url":"https://api.github.com/repos/BBN-Q/libx6/issues/comments{/number}","contents_url":"https://api.github.com/repos/BBN-Q/libx6/contents/{+path}","compare_url":"https://api.github.com/repos/BBN-Q/libx6/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BBN-Q/libx6/merges","archive_url":"https://api.github.com/repos/BBN-Q/libx6/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BBN-Q/libx6/downloads","issues_url":"https://api.github.com/repos/BBN-Q/libx6/issues{/number}","pulls_url":"https://api.github.com/repos/BBN-Q/libx6/pulls{/number}","milestones_url":"https://api.github.com/repos/BBN-Q/libx6/milestones{/number}","notifications_url":"https://api.github.com/repos/BBN-Q/libx6/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BBN-Q/libx6/labels{/name}","releases_url":"https://api.github.com/repos/BBN-Q/libx6/releases{/id}","created_at":"2014-06-26T18:44:33Z","updated_at":"2015-03-04T21:37:20Z","pushed_at":"2015-03-05T22:01:28Z","git_url":"git://github.com/BBN-Q/libx6.git","ssh_url":"git@github.com:BBN-Q/libx6.git","clone_url":"https://github.com/BBN-Q/libx6.git","svn_url":"https://github.com/BBN-Q/libx6","homepage":null,"size":728,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/BBN-Q/libx6/pulls/6"},"html":{"href":"https://github.com/BBN-Q/libx6/pull/6"},"issue":{"href":"https://api.github.com/repos/BBN-Q/libx6/issues/6"},"comments":{"href":"https://api.github.com/repos/BBN-Q/libx6/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/BBN-Q/libx6/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/BBN-Q/libx6/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BBN-Q/libx6/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/BBN-Q/libx6/statuses/deb8882b0006e1dc0996e0c334d92cad7ee6459d"}}}}