{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/pulls/comments/145007190","pull_request_review_id":69743107,"id":145007190,"diff_hunk":"@@ -1329,6 +1383,73 @@ static NFCSTATUS phLibNfc_SetSeModeSeqComplete (void* pContext,NFCSTATUS Status,\n     return wStatus;\n }\n \n+static NFCSTATUS\n+phLibNfc_SePowerAndLinkCtrlSeq(void *pContext,\n+                               NFCSTATUS wStatus,\n+                               void *pInfo)\n+{\n+    NFCSTATUS wIntStatus;\n+    pphLibNfc_LibContext_t pLibContext = (pphLibNfc_LibContext_t)pContext;\n+    UNUSED(pInfo);\n+    UNUSED(wStatus);\n+    PH_LOG_LIBNFC_FUNC_ENTRY();\n+    if ((NULL != pLibContext) && (phLibNfc_GetContext() == pLibContext))\n+    {\n+        wIntStatus = phNciNfc_Nfcee_SePowerAndLinkCtrlSet(pLibContext->sHwReference.pNciHandle,\n+                                (void *)pLibContext->sSeContext.pActiveSeInfo->hSecureElement,\n+                                pLibContext->sSeContext.ePowerLinkMode,\n+                                (pphNciNfc_IfNotificationCb_t)&phLibNfc_InternalSequence,\n+                                (void *)pLibContext);\n+    }\n+    else\n+    {\n+        PH_LOG_LIBNFC_CRIT_STR(\"Invalid Context passed from lower layer!\");","path":"libs/NfcCoreLib/lib/LibNfc/phLibNfc_Se.c","position":99,"original_position":99,"commit_id":"8dd8b6c132b48d61e67932503f19fea5b3bd3ead","original_commit_id":"8dd8b6c132b48d61e67932503f19fea5b3bd3ead","user":{"login":"cwize1","id":19414178,"avatar_url":"https://avatars0.githubusercontent.com/u/19414178?v=4","gravatar_id":"","url":"https://api.github.com/users/cwize1","html_url":"https://github.com/cwize1","followers_url":"https://api.github.com/users/cwize1/followers","following_url":"https://api.github.com/users/cwize1/following{/other_user}","gists_url":"https://api.github.com/users/cwize1/gists{/gist_id}","starred_url":"https://api.github.com/users/cwize1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cwize1/subscriptions","organizations_url":"https://api.github.com/users/cwize1/orgs","repos_url":"https://api.github.com/users/cwize1/repos","events_url":"https://api.github.com/users/cwize1/events{/privacy}","received_events_url":"https://api.github.com/users/cwize1/received_events","type":"User","site_admin":false},"body":"Assign 'wIntStatus' an error code here?","created_at":"2017-10-17T01:06:59Z","updated_at":"2017-10-17T01:19:05Z","html_url":"https://github.com/Microsoft/NFC-Class-Extension-Driver/pull/33#discussion_r145007190","pull_request_url":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/pulls/33","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/pulls/comments/145007190"},"html":{"href":"https://github.com/Microsoft/NFC-Class-Extension-Driver/pull/33#discussion_r145007190"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/pulls/33"}}},"pull_request":{"url":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/pulls/33","id":145556322,"html_url":"https://github.com/Microsoft/NFC-Class-Extension-Driver/pull/33","diff_url":"https://github.com/Microsoft/NFC-Class-Extension-Driver/pull/33.diff","patch_url":"https://github.com/Microsoft/NFC-Class-Extension-Driver/pull/33.patch","issue_url":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/issues/33","number":33,"state":"open","locked":false,"title":"Ese power management","user":{"login":"cricard13","id":9092558,"avatar_url":"https://avatars1.githubusercontent.com/u/9092558?v=4","gravatar_id":"","url":"https://api.github.com/users/cricard13","html_url":"https://github.com/cricard13","followers_url":"https://api.github.com/users/cricard13/followers","following_url":"https://api.github.com/users/cricard13/following{/other_user}","gists_url":"https://api.github.com/users/cricard13/gists{/gist_id}","starred_url":"https://api.github.com/users/cricard13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cricard13/subscriptions","organizations_url":"https://api.github.com/users/cricard13/orgs","repos_url":"https://api.github.com/users/cricard13/repos","events_url":"https://api.github.com/users/cricard13/events{/privacy}","received_events_url":"https://api.github.com/users/cricard13/received_events","type":"User","site_admin":false},"body":"This pull request is adding support for the NCI2.0 command NFCEE_POWER_AND_LINK_CNTRL.\r\nIn this pull request, this command is use to request permanent power when a communication is starting over the apdu gate and release to NFCC control once done.\r\nOut of a SWP communication, The NFCC may control eSE power for card emulation use case.","created_at":"2017-10-09T21:55:20Z","updated_at":"2017-10-17T01:19:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"70852772f18adb7ee43c9a2793f124b7d61c9878","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/pulls/33/commits","review_comments_url":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/pulls/33/comments","review_comment_url":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/issues/33/comments","statuses_url":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/statuses/8dd8b6c132b48d61e67932503f19fea5b3bd3ead","head":{"label":"cricard13:ese_power_management","ref":"ese_power_management","sha":"8dd8b6c132b48d61e67932503f19fea5b3bd3ead","user":{"login":"cricard13","id":9092558,"avatar_url":"https://avatars1.githubusercontent.com/u/9092558?v=4","gravatar_id":"","url":"https://api.github.com/users/cricard13","html_url":"https://github.com/cricard13","followers_url":"https://api.github.com/users/cricard13/followers","following_url":"https://api.github.com/users/cricard13/following{/other_user}","gists_url":"https://api.github.com/users/cricard13/gists{/gist_id}","starred_url":"https://api.github.com/users/cricard13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cricard13/subscriptions","organizations_url":"https://api.github.com/users/cricard13/orgs","repos_url":"https://api.github.com/users/cricard13/repos","events_url":"https://api.github.com/users/cricard13/events{/privacy}","received_events_url":"https://api.github.com/users/cricard13/received_events","type":"User","site_admin":false},"repo":{"id":73849642,"name":"NFC-Class-Extension-Driver","full_name":"cricard13/NFC-Class-Extension-Driver","owner":{"login":"cricard13","id":9092558,"avatar_url":"https://avatars1.githubusercontent.com/u/9092558?v=4","gravatar_id":"","url":"https://api.github.com/users/cricard13","html_url":"https://github.com/cricard13","followers_url":"https://api.github.com/users/cricard13/followers","following_url":"https://api.github.com/users/cricard13/following{/other_user}","gists_url":"https://api.github.com/users/cricard13/gists{/gist_id}","starred_url":"https://api.github.com/users/cricard13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cricard13/subscriptions","organizations_url":"https://api.github.com/users/cricard13/orgs","repos_url":"https://api.github.com/users/cricard13/repos","events_url":"https://api.github.com/users/cricard13/events{/privacy}","received_events_url":"https://api.github.com/users/cricard13/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cricard13/NFC-Class-Extension-Driver","description":"The NFC Class Extension driver implements all NFC device driver interfaces and standard NFC protocols and formats based on the NFC Forum NFC Controller Interface (NCI) Technical Specification","fork":true,"url":"https://api.github.com/repos/cricard13/NFC-Class-Extension-Driver","forks_url":"https://api.github.com/repos/cricard13/NFC-Class-Extension-Driver/forks","keys_url":"https://api.github.com/repos/cricard13/NFC-Class-Extension-Driver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cricard13/NFC-Class-Extension-Driver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cricard13/NFC-Class-Extension-Driver/teams","hooks_url":"https://api.github.com/repos/cricard13/NFC-Class-Extension-Driver/hooks","issue_events_url":"https://api.github.com/repos/cricard13/NFC-Class-Extension-Driver/issues/events{/number}","events_url":"https://api.github.com/repos/cricard13/NFC-Class-Extension-Driver/events","assignees_url":"https://api.github.com/repos/cricard13/NFC-Class-Extension-Driver/assignees{/user}","branches_url":"https://api.github.com/repos/cricard13/NFC-Class-Extension-Driver/branches{/branch}","tags_url":"https://api.github.com/repos/cricard13/NFC-Class-Extension-Driver/tags","blobs_url":"https://api.github.com/repos/cricard13/NFC-Class-Extension-Driver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cricard13/NFC-Class-Extension-Driver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cricard13/NFC-Class-Extension-Driver/git/refs{/sha}","trees_url":"https://api.github.com/repos/cricard13/NFC-Class-Extension-Driver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cricard13/NFC-Class-Extension-Driver/statuses/{sha}","languages_url":"https://api.github.com/repos/cricard13/NFC-Class-Extension-Driver/languages","stargazers_url":"https://api.github.com/repos/cricard13/NFC-Class-Extension-Driver/stargazers","contributors_url":"https://api.github.com/repos/cricard13/NFC-Class-Extension-Driver/contributors","subscribers_url":"https://api.github.com/repos/cricard13/NFC-Class-Extension-Driver/subscribers","subscription_url":"https://api.github.com/repos/cricard13/NFC-Class-Extension-Driver/subscription","commits_url":"https://api.github.com/repos/cricard13/NFC-Class-Extension-Driver/commits{/sha}","git_commits_url":"https://api.github.com/repos/cricard13/NFC-Class-Extension-Driver/git/commits{/sha}","comments_url":"https://api.github.com/repos/cricard13/NFC-Class-Extension-Driver/comments{/number}","issue_comment_url":"https://api.github.com/repos/cricard13/NFC-Class-Extension-Driver/issues/comments{/number}","contents_url":"https://api.github.com/repos/cricard13/NFC-Class-Extension-Driver/contents/{+path}","compare_url":"https://api.github.com/repos/cricard13/NFC-Class-Extension-Driver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cricard13/NFC-Class-Extension-Driver/merges","archive_url":"https://api.github.com/repos/cricard13/NFC-Class-Extension-Driver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cricard13/NFC-Class-Extension-Driver/downloads","issues_url":"https://api.github.com/repos/cricard13/NFC-Class-Extension-Driver/issues{/number}","pulls_url":"https://api.github.com/repos/cricard13/NFC-Class-Extension-Driver/pulls{/number}","milestones_url":"https://api.github.com/repos/cricard13/NFC-Class-Extension-Driver/milestones{/number}","notifications_url":"https://api.github.com/repos/cricard13/NFC-Class-Extension-Driver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cricard13/NFC-Class-Extension-Driver/labels{/name}","releases_url":"https://api.github.com/repos/cricard13/NFC-Class-Extension-Driver/releases{/id}","deployments_url":"https://api.github.com/repos/cricard13/NFC-Class-Extension-Driver/deployments","created_at":"2016-11-15T19:50:40Z","updated_at":"2016-11-15T19:50:42Z","pushed_at":"2017-10-12T22:51:27Z","git_url":"git://github.com/cricard13/NFC-Class-Extension-Driver.git","ssh_url":"git@github.com:cricard13/NFC-Class-Extension-Driver.git","clone_url":"https://github.com/cricard13/NFC-Class-Extension-Driver.git","svn_url":"https://github.com/cricard13/NFC-Class-Extension-Driver","homepage":null,"size":1649,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_projects":true,"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":0,"default_branch":"master"}},"base":{"label":"Microsoft:master","ref":"master","sha":"d5e33f4d33aad496bf787f1baa754859a9d5d6b0","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":37351260,"name":"NFC-Class-Extension-Driver","full_name":"Microsoft/NFC-Class-Extension-Driver","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/NFC-Class-Extension-Driver","description":"The NFC Class Extension driver implements all NFC device driver interfaces and standard NFC protocols and formats based on the NFC Forum NFC Controller Interface (NCI) Technical Specification","fork":false,"url":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver","forks_url":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/forks","keys_url":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/teams","hooks_url":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/events","assignees_url":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/tags","blobs_url":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/languages","stargazers_url":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/subscription","commits_url":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/merges","archive_url":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/downloads","issues_url":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/deployments","created_at":"2015-06-13T00:33:30Z","updated_at":"2017-09-10T11:52:36Z","pushed_at":"2017-10-17T00:58:33Z","git_url":"git://github.com/Microsoft/NFC-Class-Extension-Driver.git","ssh_url":"git@github.com:Microsoft/NFC-Class-Extension-Driver.git","clone_url":"https://github.com/Microsoft/NFC-Class-Extension-Driver.git","svn_url":"https://github.com/Microsoft/NFC-Class-Extension-Driver","homepage":null,"size":1556,"stargazers_count":23,"watchers_count":23,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":15,"forks":21,"open_issues":15,"watchers":23,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/pulls/33"},"html":{"href":"https://github.com/Microsoft/NFC-Class-Extension-Driver/pull/33"},"issue":{"href":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/issues/33"},"comments":{"href":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/issues/33/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/pulls/33/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/pulls/33/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/NFC-Class-Extension-Driver/statuses/8dd8b6c132b48d61e67932503f19fea5b3bd3ead"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"cwize1"}}