{"action":"created","comment":{"url":"https://api.github.com/repos/xen-troops/snd_be/pulls/comments/177414250","pull_request_review_id":107275150,"id":177414250,"diff_hunk":"@@ -543,4 +582,243 @@ snd_pcm_format_t AlsaPcm::convertPcmFormat(uint8_t format)\n \tthrow Exception(\"Can't convert format\", EINVAL);\n }\n \n+uint64_t AlsaPcm::toSndifFormatsMask(snd_pcm_format_mask_t* alsa_formats)\n+{\n+\tuint64_t mask;\n+\n+\tmask = 0;\n+\tfor (auto value : sPcmFormat)\n+\t\tif (snd_pcm_format_mask_test(alsa_formats, value.alsa))\n+\t\t\tmask |= 1 << value.sndif;\n+\n+\treturn mask;\n+}\n+\n+snd_pcm_format_mask_t* AlsaPcm::toAlsaFormatsMask(uint64_t sndif_formats)\n+{\n+\tsnd_pcm_format_mask_t* formats;\n+\n+\tformats = static_cast<snd_pcm_format_mask_t*>(malloc(snd_pcm_format_mask_sizeof()));\n+\tif (!formats)\n+\t\treturn nullptr;\n+\n+\tsnd_pcm_format_mask_none(formats);\n+\n+\tfor (auto value : sPcmFormat)\n+\t\tif (1 << value.sndif & sndif_formats)\n+\t\t\tsnd_pcm_format_mask_set(formats, value.alsa);\n+\n+\treturn formats;\n+}\n+\n+void AlsaPcm::queryOpen()\n+{\n+\ttry\n+\t{\n+\t\tsnd_pcm_stream_t streamType = mType == StreamType::PLAYBACK ?\n+\t\t\t\tSND_PCM_STREAM_PLAYBACK : SND_PCM_STREAM_CAPTURE;\n+\n+\t\tint ret = 0;\n+\n+\t\tif (!mHwQueryHandle)\n+\t\t{\n+\t\t\tDLOG(mLog, DEBUG) << \"Opening pcm device for queries: \" << mDeviceName;\n+\n+\t\t\tif ((ret = snd_pcm_open(&mHwQueryHandle, mDeviceName.c_str(),\n+\t\t\t\t\t\t\t\t    streamType, 0)) < 0)\n+\t\t\t{\n+\t\t\t\tthrow Exception(\"Can't open audio device \" + mDeviceName, -ret);\n+\t\t\t}\n+\n+\t\t\t/*\n+\t\t\t * remember this, so next time we need to query we just use\n+\t\t\t * this copy and save one ioctl call\n+\t\t\t */\n+\t\t\tsnd_pcm_hw_params_malloc(&mHwQueryParamsOrig);\n+\n+\t\t\tif ((ret = snd_pcm_hw_params_any(mHwQueryHandle, mHwQueryParamsOrig)) < 0)\n+\t\t\t{\n+\t\t\t\tthrow Exception(\"Can't fill hw params \" + mDeviceName, -ret);\n+\t\t\t}\n+\t\t}\n+\t}\n+\tcatch(const std::exception& e)\n+\t{\n+\t\tclose();\n+\n+\t\tthrow;\n+\t}\n+}\n+\n+void AlsaPcm::queryClose()\n+{\n+\tif (mHwQueryHandle)\n+\t{\n+\t\tDLOG(mLog, DEBUG) << \"Close pcm query device: \" << mDeviceName;\n+\n+\t\tsnd_pcm_close(mHwQueryHandle);\n+\n+\t\tsnd_pcm_hw_params_free(mHwQueryParamsOrig);\n+\t}\n+\n+\tif (mHwQueryParams)\n+\t{\n+\t\tsnd_pcm_hw_params_free(mHwQueryParams);\n+\t}\n+\n+\tmHwQueryHandle = nullptr;\n+\tmHwQueryParamsOrig = nullptr;\n+\tmHwQueryParams = nullptr;\n+}\n+\n+void AlsaPcm::queryHwParamRate(SoundItf::PcmParamRanges& req, SoundItf::PcmParamRanges& resp)\n+{\n+\tint ret;\n+\n+\tif ((ret = snd_pcm_hw_params_set_rate_minmax(mHwQueryHandle, mHwQueryParams,\n+\t\t\t&req.rates.min, 0, &req.rates.max, 0)) < 0)\n+\t{\n+\t\t/*\n+\t\t * This is not really a fatal error, the frontend just tries to\n+\t\t * reduce configuration space.\n+\t\t * But, anyway, throw now, so we can return error code to\n+\t\t * the frontend.\n+\t\t */\n+\t}\n+\n+\tif ((ret = snd_pcm_hw_params_get_rate_min(mHwQueryParams, &resp.rates.min, 0)) < 0)\n+\t{\n+\t\tthrow Exception(\"Can't get rate min \" + mDeviceName, -ret);\n+\t}\n+\n+\tif ((ret = snd_pcm_hw_params_get_rate_max(mHwQueryParams, &resp.rates.max, 0)) < 0)\n+\t{\n+\t\tthrow Exception(\"Can't get rate max \" + mDeviceName, -ret);\n+\t}\n+}\n+\n+void AlsaPcm::queryHwParamBuffer(SoundItf::PcmParamRanges& req, SoundItf::PcmParamRanges& resp)\n+\n+{\n+\tsnd_pcm_uframes_t minFrames = static_cast<snd_pcm_uframes_t>(req.buffer.min);\n+\tsnd_pcm_uframes_t maxFrames = static_cast<snd_pcm_uframes_t>(req.buffer.max);\n+\tint ret;\n+\n+\tif ((ret = snd_pcm_hw_params_set_buffer_size_minmax(mHwQueryHandle, mHwQueryParams,\n+\t\t\t&minFrames, &maxFrames)) < 0)\n+\t{\n+\t\t/*\n+\t\t * This is not really a fatal error, the frontend just tries to\n+\t\t * reduce configuration space.\n+\t\t * But, anyway, throw now, so we can return error code to\n+\t\t * the frontend.\n+\t\t */\n+\t}\n+\n+\tif ((ret = snd_pcm_hw_params_get_buffer_size_min(mHwQueryParams, &minFrames)) < 0)\n+\t{\n+\t\tthrow Exception(\"Can't get buffer min\" + mDeviceName, -ret);\n+\t}\n+\n+\tif ((ret = snd_pcm_hw_params_get_buffer_size_max(mHwQueryParams, &maxFrames)) < 0)\n+\t{\n+\t\tthrow Exception(\"Can't get buffer max\" + mDeviceName, -ret);\n+\t}\n+\n+\tresp.buffer.min = static_cast<unsigned int>(minFrames);\n+\tresp.buffer.max = static_cast<unsigned int>(maxFrames);\n+}\n+\n+void AlsaPcm::queryHwParamChannels(SoundItf::PcmParamRanges& req, SoundItf::PcmParamRanges& resp)\n+{\n+\tint ret;\n+\n+\tif ((ret = snd_pcm_hw_params_set_channels_minmax(mHwQueryHandle, mHwQueryParams,\n+\t\t\t&req.channels.min, &req.channels.max)) < 0)\n+\t{\n+\t\t/*\n+\t\t * This is not really a fatal error, the frontend just tries to\n+\t\t * reduce configuration space.\n+\t\t * But, anyway, throw now, so we can return error code to\n+\t\t * the frontend.\n+\t\t */\n+\t}\n+\n+\tif ((ret = snd_pcm_hw_params_get_channels_min(mHwQueryParams, &resp.channels.min)) < 0)\n+\t{\n+\t\tthrow Exception(\"Can't get channels min \" + mDeviceName, -ret);\n+\t}\n+\n+\tif ((ret = snd_pcm_hw_params_get_channels_max(mHwQueryParams, &resp.channels.max)) < 0)\n+\t{\n+\t\tthrow Exception(\"Can't get channels max \" + mDeviceName, -ret);\n+\t}\n+}\n+\n+void AlsaPcm::queryHwParamPeriod(SoundItf::PcmParamRanges& req, SoundItf::PcmParamRanges& resp)\n+{\n+\tsnd_pcm_uframes_t minFrames = static_cast<snd_pcm_uframes_t>(req.period.min);\n+\tsnd_pcm_uframes_t maxFrames = static_cast<snd_pcm_uframes_t>(req.period.max);\n+\tint ret;\n+\n+\tif ((ret = snd_pcm_hw_params_set_period_size_minmax(mHwQueryHandle, mHwQueryParams,\n+\t\t\t&minFrames, 0, &maxFrames, 0)) < 0)\n+\t{\n+\t\t/*\n+\t\t * This is not really a fatal error, the frontend just tries to\n+\t\t * reduce configuration space.\n+\t\t * But, anyway, throw now, so we can return error code to\n+\t\t * the frontend.\n+\t\t */\n+\t}\n+\n+\tif ((ret = snd_pcm_hw_params_get_period_size_min(mHwQueryParams, &minFrames, 0)) < 0)\n+\t{\n+\t\tthrow Exception(\"Can't get period min\" + mDeviceName, -ret);\n+\t}\n+\n+\tif ((ret = snd_pcm_hw_params_get_period_size_max(mHwQueryParams, &maxFrames, 0)) < 0)\n+\t{\n+\t\tthrow Exception(\"Can't get period max\" + mDeviceName, -ret);\n+\t}\n+\n+\tresp.period.min = static_cast<unsigned int>(minFrames);\n+\tresp.period.max = static_cast<unsigned int>(maxFrames);\n+}\n+\n+void AlsaPcm::queryHwParamFormats(SoundItf::PcmParamRanges& req, SoundItf::PcmParamRanges& resp)\n+{\n+\tsnd_pcm_format_mask_t* alsa_formats = nullptr;\n+\tint ret;\n+\n+\ttry {\n+\t\talsa_formats = toAlsaFormatsMask(req.formats);","path":"src/AlsaPcm.cpp","position":310,"original_position":310,"commit_id":"0963c637afb9b2cd65eb6fce955e15900ff82346","original_commit_id":"0963c637afb9b2cd65eb6fce955e15900ff82346","user":{"login":"al1img","id":6860363,"avatar_url":"https://avatars2.githubusercontent.com/u/6860363?v=4","gravatar_id":"","url":"https://api.github.com/users/al1img","html_url":"https://github.com/al1img","followers_url":"https://api.github.com/users/al1img/followers","following_url":"https://api.github.com/users/al1img/following{/other_user}","gists_url":"https://api.github.com/users/al1img/gists{/gist_id}","starred_url":"https://api.github.com/users/al1img/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/al1img/subscriptions","organizations_url":"https://api.github.com/users/al1img/orgs","repos_url":"https://api.github.com/users/al1img/repos","events_url":"https://api.github.com/users/al1img/events{/privacy}","received_events_url":"https://api.github.com/users/al1img/received_events","type":"User","site_admin":false},"body":"Better to create and fill mask array right here with snd_pcm_format_mask_alloca. No need to free in two places.","created_at":"2018-03-27T13:00:57Z","updated_at":"2018-03-27T13:05:58Z","html_url":"https://github.com/xen-troops/snd_be/pull/28#discussion_r177414250","pull_request_url":"https://api.github.com/repos/xen-troops/snd_be/pulls/28","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/xen-troops/snd_be/pulls/comments/177414250"},"html":{"href":"https://github.com/xen-troops/snd_be/pull/28#discussion_r177414250"},"pull_request":{"href":"https://api.github.com/repos/xen-troops/snd_be/pulls/28"}}},"pull_request":{"url":"https://api.github.com/repos/xen-troops/snd_be/pulls/28","id":175017365,"html_url":"https://github.com/xen-troops/snd_be/pull/28","diff_url":"https://github.com/xen-troops/snd_be/pull/28.diff","patch_url":"https://github.com/xen-troops/snd_be/pull/28.patch","issue_url":"https://api.github.com/repos/xen-troops/snd_be/issues/28","number":28,"state":"open","locked":false,"title":"Handle query HW params","user":{"login":"andr2000","id":827874,"avatar_url":"https://avatars3.githubusercontent.com/u/827874?v=4","gravatar_id":"","url":"https://api.github.com/users/andr2000","html_url":"https://github.com/andr2000","followers_url":"https://api.github.com/users/andr2000/followers","following_url":"https://api.github.com/users/andr2000/following{/other_user}","gists_url":"https://api.github.com/users/andr2000/gists{/gist_id}","starred_url":"https://api.github.com/users/andr2000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andr2000/subscriptions","organizations_url":"https://api.github.com/users/andr2000/orgs","repos_url":"https://api.github.com/users/andr2000/repos","events_url":"https://api.github.com/users/andr2000/events{/privacy}","received_events_url":"https://api.github.com/users/andr2000/received_events","type":"User","site_admin":false},"body":"In order to provide explicit stream parameter negotiation between\r\nbackend and frontend the following changes are introduced in the protocol:\r\nadd XENSND_OP_HW_PARAM_QUERY request to read/update\r\nconfiguration space for the parameter given: request passes\r\ndesired parameter interval (mask) and the response to this request\r\nreturns min/max interval (mask) for the parameter to be used.\r\n\r\nParameters supported by this request/response:\r\n - format mask\r\n - sample rate interval\r\n - number of channels interval\r\n - buffer size, interval, frames\r\n - period size, interval, frames\r\n\r\nSigned-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>","created_at":"2018-03-14T16:44:32Z","updated_at":"2018-03-27T13:05:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d3eae3c7d99c584a82ce95203cb6b503cb60ae43","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/xen-troops/snd_be/pulls/28/commits","review_comments_url":"https://api.github.com/repos/xen-troops/snd_be/pulls/28/comments","review_comment_url":"https://api.github.com/repos/xen-troops/snd_be/pulls/comments{/number}","comments_url":"https://api.github.com/repos/xen-troops/snd_be/issues/28/comments","statuses_url":"https://api.github.com/repos/xen-troops/snd_be/statuses/0963c637afb9b2cd65eb6fce955e15900ff82346","head":{"label":"andr2000:pr_hw_param","ref":"pr_hw_param","sha":"0963c637afb9b2cd65eb6fce955e15900ff82346","user":{"login":"andr2000","id":827874,"avatar_url":"https://avatars3.githubusercontent.com/u/827874?v=4","gravatar_id":"","url":"https://api.github.com/users/andr2000","html_url":"https://github.com/andr2000","followers_url":"https://api.github.com/users/andr2000/followers","following_url":"https://api.github.com/users/andr2000/following{/other_user}","gists_url":"https://api.github.com/users/andr2000/gists{/gist_id}","starred_url":"https://api.github.com/users/andr2000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andr2000/subscriptions","organizations_url":"https://api.github.com/users/andr2000/orgs","repos_url":"https://api.github.com/users/andr2000/repos","events_url":"https://api.github.com/users/andr2000/events{/privacy}","received_events_url":"https://api.github.com/users/andr2000/received_events","type":"User","site_admin":false},"repo":{"id":125045560,"name":"snd_be","full_name":"andr2000/snd_be","owner":{"login":"andr2000","id":827874,"avatar_url":"https://avatars3.githubusercontent.com/u/827874?v=4","gravatar_id":"","url":"https://api.github.com/users/andr2000","html_url":"https://github.com/andr2000","followers_url":"https://api.github.com/users/andr2000/followers","following_url":"https://api.github.com/users/andr2000/following{/other_user}","gists_url":"https://api.github.com/users/andr2000/gists{/gist_id}","starred_url":"https://api.github.com/users/andr2000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andr2000/subscriptions","organizations_url":"https://api.github.com/users/andr2000/orgs","repos_url":"https://api.github.com/users/andr2000/repos","events_url":"https://api.github.com/users/andr2000/events{/privacy}","received_events_url":"https://api.github.com/users/andr2000/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andr2000/snd_be","description":null,"fork":true,"url":"https://api.github.com/repos/andr2000/snd_be","forks_url":"https://api.github.com/repos/andr2000/snd_be/forks","keys_url":"https://api.github.com/repos/andr2000/snd_be/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andr2000/snd_be/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andr2000/snd_be/teams","hooks_url":"https://api.github.com/repos/andr2000/snd_be/hooks","issue_events_url":"https://api.github.com/repos/andr2000/snd_be/issues/events{/number}","events_url":"https://api.github.com/repos/andr2000/snd_be/events","assignees_url":"https://api.github.com/repos/andr2000/snd_be/assignees{/user}","branches_url":"https://api.github.com/repos/andr2000/snd_be/branches{/branch}","tags_url":"https://api.github.com/repos/andr2000/snd_be/tags","blobs_url":"https://api.github.com/repos/andr2000/snd_be/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andr2000/snd_be/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andr2000/snd_be/git/refs{/sha}","trees_url":"https://api.github.com/repos/andr2000/snd_be/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andr2000/snd_be/statuses/{sha}","languages_url":"https://api.github.com/repos/andr2000/snd_be/languages","stargazers_url":"https://api.github.com/repos/andr2000/snd_be/stargazers","contributors_url":"https://api.github.com/repos/andr2000/snd_be/contributors","subscribers_url":"https://api.github.com/repos/andr2000/snd_be/subscribers","subscription_url":"https://api.github.com/repos/andr2000/snd_be/subscription","commits_url":"https://api.github.com/repos/andr2000/snd_be/commits{/sha}","git_commits_url":"https://api.github.com/repos/andr2000/snd_be/git/commits{/sha}","comments_url":"https://api.github.com/repos/andr2000/snd_be/comments{/number}","issue_comment_url":"https://api.github.com/repos/andr2000/snd_be/issues/comments{/number}","contents_url":"https://api.github.com/repos/andr2000/snd_be/contents/{+path}","compare_url":"https://api.github.com/repos/andr2000/snd_be/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andr2000/snd_be/merges","archive_url":"https://api.github.com/repos/andr2000/snd_be/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andr2000/snd_be/downloads","issues_url":"https://api.github.com/repos/andr2000/snd_be/issues{/number}","pulls_url":"https://api.github.com/repos/andr2000/snd_be/pulls{/number}","milestones_url":"https://api.github.com/repos/andr2000/snd_be/milestones{/number}","notifications_url":"https://api.github.com/repos/andr2000/snd_be/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andr2000/snd_be/labels{/name}","releases_url":"https://api.github.com/repos/andr2000/snd_be/releases{/id}","deployments_url":"https://api.github.com/repos/andr2000/snd_be/deployments","created_at":"2018-03-13T12:07:05Z","updated_at":"2018-03-13T12:07:07Z","pushed_at":"2018-03-16T14:19:51Z","git_url":"git://github.com/andr2000/snd_be.git","ssh_url":"git@github.com:andr2000/snd_be.git","clone_url":"https://github.com/andr2000/snd_be.git","svn_url":"https://github.com/andr2000/snd_be","homepage":null,"size":101,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"xen-troops:master","ref":"master","sha":"19ee413cc2e6f5f6a394fcf02d8e7af19cdbf823","user":{"login":"xen-troops","id":22070357,"avatar_url":"https://avatars1.githubusercontent.com/u/22070357?v=4","gravatar_id":"","url":"https://api.github.com/users/xen-troops","html_url":"https://github.com/xen-troops","followers_url":"https://api.github.com/users/xen-troops/followers","following_url":"https://api.github.com/users/xen-troops/following{/other_user}","gists_url":"https://api.github.com/users/xen-troops/gists{/gist_id}","starred_url":"https://api.github.com/users/xen-troops/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xen-troops/subscriptions","organizations_url":"https://api.github.com/users/xen-troops/orgs","repos_url":"https://api.github.com/users/xen-troops/repos","events_url":"https://api.github.com/users/xen-troops/events{/privacy}","received_events_url":"https://api.github.com/users/xen-troops/received_events","type":"Organization","site_admin":false},"repo":{"id":73292976,"name":"snd_be","full_name":"xen-troops/snd_be","owner":{"login":"xen-troops","id":22070357,"avatar_url":"https://avatars1.githubusercontent.com/u/22070357?v=4","gravatar_id":"","url":"https://api.github.com/users/xen-troops","html_url":"https://github.com/xen-troops","followers_url":"https://api.github.com/users/xen-troops/followers","following_url":"https://api.github.com/users/xen-troops/following{/other_user}","gists_url":"https://api.github.com/users/xen-troops/gists{/gist_id}","starred_url":"https://api.github.com/users/xen-troops/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xen-troops/subscriptions","organizations_url":"https://api.github.com/users/xen-troops/orgs","repos_url":"https://api.github.com/users/xen-troops/repos","events_url":"https://api.github.com/users/xen-troops/events{/privacy}","received_events_url":"https://api.github.com/users/xen-troops/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/xen-troops/snd_be","description":null,"fork":false,"url":"https://api.github.com/repos/xen-troops/snd_be","forks_url":"https://api.github.com/repos/xen-troops/snd_be/forks","keys_url":"https://api.github.com/repos/xen-troops/snd_be/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xen-troops/snd_be/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xen-troops/snd_be/teams","hooks_url":"https://api.github.com/repos/xen-troops/snd_be/hooks","issue_events_url":"https://api.github.com/repos/xen-troops/snd_be/issues/events{/number}","events_url":"https://api.github.com/repos/xen-troops/snd_be/events","assignees_url":"https://api.github.com/repos/xen-troops/snd_be/assignees{/user}","branches_url":"https://api.github.com/repos/xen-troops/snd_be/branches{/branch}","tags_url":"https://api.github.com/repos/xen-troops/snd_be/tags","blobs_url":"https://api.github.com/repos/xen-troops/snd_be/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xen-troops/snd_be/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xen-troops/snd_be/git/refs{/sha}","trees_url":"https://api.github.com/repos/xen-troops/snd_be/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xen-troops/snd_be/statuses/{sha}","languages_url":"https://api.github.com/repos/xen-troops/snd_be/languages","stargazers_url":"https://api.github.com/repos/xen-troops/snd_be/stargazers","contributors_url":"https://api.github.com/repos/xen-troops/snd_be/contributors","subscribers_url":"https://api.github.com/repos/xen-troops/snd_be/subscribers","subscription_url":"https://api.github.com/repos/xen-troops/snd_be/subscription","commits_url":"https://api.github.com/repos/xen-troops/snd_be/commits{/sha}","git_commits_url":"https://api.github.com/repos/xen-troops/snd_be/git/commits{/sha}","comments_url":"https://api.github.com/repos/xen-troops/snd_be/comments{/number}","issue_comment_url":"https://api.github.com/repos/xen-troops/snd_be/issues/comments{/number}","contents_url":"https://api.github.com/repos/xen-troops/snd_be/contents/{+path}","compare_url":"https://api.github.com/repos/xen-troops/snd_be/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xen-troops/snd_be/merges","archive_url":"https://api.github.com/repos/xen-troops/snd_be/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xen-troops/snd_be/downloads","issues_url":"https://api.github.com/repos/xen-troops/snd_be/issues{/number}","pulls_url":"https://api.github.com/repos/xen-troops/snd_be/pulls{/number}","milestones_url":"https://api.github.com/repos/xen-troops/snd_be/milestones{/number}","notifications_url":"https://api.github.com/repos/xen-troops/snd_be/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xen-troops/snd_be/labels{/name}","releases_url":"https://api.github.com/repos/xen-troops/snd_be/releases{/id}","deployments_url":"https://api.github.com/repos/xen-troops/snd_be/deployments","created_at":"2016-11-09T14:50:36Z","updated_at":"2017-08-08T10:55:48Z","pushed_at":"2018-03-16T14:19:52Z","git_url":"git://github.com/xen-troops/snd_be.git","ssh_url":"git@github.com:xen-troops/snd_be.git","clone_url":"https://github.com/xen-troops/snd_be.git","svn_url":"https://github.com/xen-troops/snd_be","homepage":null,"size":101,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0"},"forks":2,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/xen-troops/snd_be/pulls/28"},"html":{"href":"https://github.com/xen-troops/snd_be/pull/28"},"issue":{"href":"https://api.github.com/repos/xen-troops/snd_be/issues/28"},"comments":{"href":"https://api.github.com/repos/xen-troops/snd_be/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/xen-troops/snd_be/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/xen-troops/snd_be/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/xen-troops/snd_be/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/xen-troops/snd_be/statuses/0963c637afb9b2cd65eb6fce955e15900ff82346"}},"author_association":"NONE"}}
{"actor":{"display_login":"al1img"}}