{"action":"created","comment":{"url":"https://api.github.com/repos/Samsung/TizenRT/pulls/comments/226946953","pull_request_review_id":166875482,"id":226946953,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNjk0Njk1Mw==","diff_hunk":"@@ -1285,60 +1301,66 @@ wifi_manager_result_e _handler_on_scanning_state(_wifimgr_msg_s *msg)\n void _handle_user_cb(_wifimgr_usr_cb_type_e evt, void *arg)\n {\n \tWM_LOG_START;\n-\twifi_manager_cb_s *cbk = &g_manager_info.cb;\n-\tswitch (evt) {\n-\tcase CB_STA_CONNECTED:\n-\t\tnvdbg(\"[WM] call sta connect success event\\n\");\n-#ifdef CONFIG_ENABLE_IOTIVITY\n-\t\t__tizenrt_manual_linkset(\"gen\");\n-#endif\n-\t\tcbk->sta_connected(WIFI_MANAGER_SUCCESS);\n-\t\tbreak;\n-\tcase CB_STA_CONNECT_FAILED:\n-\t\tnvdbg(\"[WM] call sta connect fail event\\n\");\n-\t\tWIFIADD_ERR_RECORD(ERR_WIFIMGR_CONNECT_FAIL);\n-\t\tcbk->sta_connected(WIFI_MANAGER_FAIL);\n-\t\tbreak;\n-\tcase CB_STA_DISCONNECTED:\n-\t\tnvdbg(\"[WM] call sta disconnect event\\n\");\n+\tint i = 0;\n+\tfor (; i < WIFIMGR_NUM_CALLBACKS; i++) {\n+\t\twifi_manager_cb_s *cbk = g_manager_info.cb[i];\n+\t\tif (!cbk) {\n+\t\t\tcontinue;\n+\t\t}\n+\t\tswitch (evt) {\n+\t\tcase CB_STA_CONNECTED:\n+\t\t\tnvdbg(\"[WM] call sta connect success event\\n\");\n #ifdef CONFIG_ENABLE_IOTIVITY\n-\t\t__tizenrt_manual_linkset(\"del\");\n+\t\t\t__tizenrt_manual_linkset(\"gen\");","path":"framework/src/wifi_manager/wifi_manager.c","position":126,"original_position":126,"commit_id":"03a8aa1639c15bdfca625f023a378b118b960d7a","original_commit_id":"03a8aa1639c15bdfca625f023a378b118b960d7a","user":{"login":"thapav","id":25978180,"node_id":"MDQ6VXNlcjI1OTc4MTgw","avatar_url":"https://avatars2.githubusercontent.com/u/25978180?v=4","gravatar_id":"","url":"https://api.github.com/users/thapav","html_url":"https://github.com/thapav","followers_url":"https://api.github.com/users/thapav/followers","following_url":"https://api.github.com/users/thapav/following{/other_user}","gists_url":"https://api.github.com/users/thapav/gists{/gist_id}","starred_url":"https://api.github.com/users/thapav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thapav/subscriptions","organizations_url":"https://api.github.com/users/thapav/orgs","repos_url":"https://api.github.com/users/thapav/repos","events_url":"https://api.github.com/users/thapav/events{/privacy}","received_events_url":"https://api.github.com/users/thapav/received_events","type":"User","site_admin":false},"body":"please correct indentation","created_at":"2018-10-22T09:50:44Z","updated_at":"2018-10-22T09:52:26Z","html_url":"https://github.com/Samsung/TizenRT/pull/2366#discussion_r226946953","pull_request_url":"https://api.github.com/repos/Samsung/TizenRT/pulls/2366","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Samsung/TizenRT/pulls/comments/226946953"},"html":{"href":"https://github.com/Samsung/TizenRT/pull/2366#discussion_r226946953"},"pull_request":{"href":"https://api.github.com/repos/Samsung/TizenRT/pulls/2366"}}},"pull_request":{"url":"https://api.github.com/repos/Samsung/TizenRT/pulls/2366","id":224583218,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0NTgzMjE4","html_url":"https://github.com/Samsung/TizenRT/pull/2366","diff_url":"https://github.com/Samsung/TizenRT/pull/2366.diff","patch_url":"https://github.com/Samsung/TizenRT/pull/2366.patch","issue_url":"https://api.github.com/repos/Samsung/TizenRT/issues/2366","number":2366,"state":"open","locked":false,"title":"network/wifi_manager: Add register, unregister callback API","user":{"login":"SeonghoByeon","id":38093906,"node_id":"MDQ6VXNlcjM4MDkzOTA2","avatar_url":"https://avatars2.githubusercontent.com/u/38093906?v=4","gravatar_id":"","url":"https://api.github.com/users/SeonghoByeon","html_url":"https://github.com/SeonghoByeon","followers_url":"https://api.github.com/users/SeonghoByeon/followers","following_url":"https://api.github.com/users/SeonghoByeon/following{/other_user}","gists_url":"https://api.github.com/users/SeonghoByeon/gists{/gist_id}","starred_url":"https://api.github.com/users/SeonghoByeon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SeonghoByeon/subscriptions","organizations_url":"https://api.github.com/users/SeonghoByeon/orgs","repos_url":"https://api.github.com/users/SeonghoByeon/repos","events_url":"https://api.github.com/users/SeonghoByeon/events{/privacy}","received_events_url":"https://api.github.com/users/SeonghoByeon/received_events","type":"User","site_admin":false},"body":"- By adding these APIs, applications on TizenRT can get wi-fi events max 3 by default. \r\n- Note that the 0th index of the callback array is allocated by initializing Wi-Fi Manager, wifi_manager_init.","created_at":"2018-10-22T03:13:21Z","updated_at":"2018-10-22T09:52:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"333c21fe3bd7e0904f7011919aea6cc1c009b92d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Samsung/TizenRT/pulls/2366/commits","review_comments_url":"https://api.github.com/repos/Samsung/TizenRT/pulls/2366/comments","review_comment_url":"https://api.github.com/repos/Samsung/TizenRT/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Samsung/TizenRT/issues/2366/comments","statuses_url":"https://api.github.com/repos/Samsung/TizenRT/statuses/03a8aa1639c15bdfca625f023a378b118b960d7a","head":{"label":"SeonghoByeon:wm_mcb","ref":"wm_mcb","sha":"03a8aa1639c15bdfca625f023a378b118b960d7a","user":{"login":"SeonghoByeon","id":38093906,"node_id":"MDQ6VXNlcjM4MDkzOTA2","avatar_url":"https://avatars2.githubusercontent.com/u/38093906?v=4","gravatar_id":"","url":"https://api.github.com/users/SeonghoByeon","html_url":"https://github.com/SeonghoByeon","followers_url":"https://api.github.com/users/SeonghoByeon/followers","following_url":"https://api.github.com/users/SeonghoByeon/following{/other_user}","gists_url":"https://api.github.com/users/SeonghoByeon/gists{/gist_id}","starred_url":"https://api.github.com/users/SeonghoByeon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SeonghoByeon/subscriptions","organizations_url":"https://api.github.com/users/SeonghoByeon/orgs","repos_url":"https://api.github.com/users/SeonghoByeon/repos","events_url":"https://api.github.com/users/SeonghoByeon/events{/privacy}","received_events_url":"https://api.github.com/users/SeonghoByeon/received_events","type":"User","site_admin":false},"repo":{"id":131233534,"node_id":"MDEwOlJlcG9zaXRvcnkxMzEyMzM1MzQ=","name":"TizenRT","full_name":"SeonghoByeon/TizenRT","private":false,"owner":{"login":"SeonghoByeon","id":38093906,"node_id":"MDQ6VXNlcjM4MDkzOTA2","avatar_url":"https://avatars2.githubusercontent.com/u/38093906?v=4","gravatar_id":"","url":"https://api.github.com/users/SeonghoByeon","html_url":"https://github.com/SeonghoByeon","followers_url":"https://api.github.com/users/SeonghoByeon/followers","following_url":"https://api.github.com/users/SeonghoByeon/following{/other_user}","gists_url":"https://api.github.com/users/SeonghoByeon/gists{/gist_id}","starred_url":"https://api.github.com/users/SeonghoByeon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SeonghoByeon/subscriptions","organizations_url":"https://api.github.com/users/SeonghoByeon/orgs","repos_url":"https://api.github.com/users/SeonghoByeon/repos","events_url":"https://api.github.com/users/SeonghoByeon/events{/privacy}","received_events_url":"https://api.github.com/users/SeonghoByeon/received_events","type":"User","site_admin":false},"html_url":"https://github.com/SeonghoByeon/TizenRT","description":"TizenRT is a lightweight RTOS-based platform to support low-end IoT devices","fork":true,"url":"https://api.github.com/repos/SeonghoByeon/TizenRT","forks_url":"https://api.github.com/repos/SeonghoByeon/TizenRT/forks","keys_url":"https://api.github.com/repos/SeonghoByeon/TizenRT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SeonghoByeon/TizenRT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SeonghoByeon/TizenRT/teams","hooks_url":"https://api.github.com/repos/SeonghoByeon/TizenRT/hooks","issue_events_url":"https://api.github.com/repos/SeonghoByeon/TizenRT/issues/events{/number}","events_url":"https://api.github.com/repos/SeonghoByeon/TizenRT/events","assignees_url":"https://api.github.com/repos/SeonghoByeon/TizenRT/assignees{/user}","branches_url":"https://api.github.com/repos/SeonghoByeon/TizenRT/branches{/branch}","tags_url":"https://api.github.com/repos/SeonghoByeon/TizenRT/tags","blobs_url":"https://api.github.com/repos/SeonghoByeon/TizenRT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SeonghoByeon/TizenRT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SeonghoByeon/TizenRT/git/refs{/sha}","trees_url":"https://api.github.com/repos/SeonghoByeon/TizenRT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SeonghoByeon/TizenRT/statuses/{sha}","languages_url":"https://api.github.com/repos/SeonghoByeon/TizenRT/languages","stargazers_url":"https://api.github.com/repos/SeonghoByeon/TizenRT/stargazers","contributors_url":"https://api.github.com/repos/SeonghoByeon/TizenRT/contributors","subscribers_url":"https://api.github.com/repos/SeonghoByeon/TizenRT/subscribers","subscription_url":"https://api.github.com/repos/SeonghoByeon/TizenRT/subscription","commits_url":"https://api.github.com/repos/SeonghoByeon/TizenRT/commits{/sha}","git_commits_url":"https://api.github.com/repos/SeonghoByeon/TizenRT/git/commits{/sha}","comments_url":"https://api.github.com/repos/SeonghoByeon/TizenRT/comments{/number}","issue_comment_url":"https://api.github.com/repos/SeonghoByeon/TizenRT/issues/comments{/number}","contents_url":"https://api.github.com/repos/SeonghoByeon/TizenRT/contents/{+path}","compare_url":"https://api.github.com/repos/SeonghoByeon/TizenRT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SeonghoByeon/TizenRT/merges","archive_url":"https://api.github.com/repos/SeonghoByeon/TizenRT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SeonghoByeon/TizenRT/downloads","issues_url":"https://api.github.com/repos/SeonghoByeon/TizenRT/issues{/number}","pulls_url":"https://api.github.com/repos/SeonghoByeon/TizenRT/pulls{/number}","milestones_url":"https://api.github.com/repos/SeonghoByeon/TizenRT/milestones{/number}","notifications_url":"https://api.github.com/repos/SeonghoByeon/TizenRT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SeonghoByeon/TizenRT/labels{/name}","releases_url":"https://api.github.com/repos/SeonghoByeon/TizenRT/releases{/id}","deployments_url":"https://api.github.com/repos/SeonghoByeon/TizenRT/deployments","created_at":"2018-04-27T02:14:41Z","updated_at":"2018-10-19T07:37:58Z","pushed_at":"2018-10-22T03:11:03Z","git_url":"git://github.com/SeonghoByeon/TizenRT.git","ssh_url":"git@github.com:SeonghoByeon/TizenRT.git","clone_url":"https://github.com/SeonghoByeon/TizenRT.git","svn_url":"https://github.com/SeonghoByeon/TizenRT","homepage":"","size":106582,"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,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Samsung:master","ref":"master","sha":"ef97d040530998eb9a0e525f8501d03b96b63e36","user":{"login":"Samsung","id":6210390,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYyMTAzOTA=","avatar_url":"https://avatars3.githubusercontent.com/u/6210390?v=4","gravatar_id":"","url":"https://api.github.com/users/Samsung","html_url":"https://github.com/Samsung","followers_url":"https://api.github.com/users/Samsung/followers","following_url":"https://api.github.com/users/Samsung/following{/other_user}","gists_url":"https://api.github.com/users/Samsung/gists{/gist_id}","starred_url":"https://api.github.com/users/Samsung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Samsung/subscriptions","organizations_url":"https://api.github.com/users/Samsung/orgs","repos_url":"https://api.github.com/users/Samsung/repos","events_url":"https://api.github.com/users/Samsung/events{/privacy}","received_events_url":"https://api.github.com/users/Samsung/received_events","type":"Organization","site_admin":false},"repo":{"id":82517252,"node_id":"MDEwOlJlcG9zaXRvcnk4MjUxNzI1Mg==","name":"TizenRT","full_name":"Samsung/TizenRT","private":false,"owner":{"login":"Samsung","id":6210390,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYyMTAzOTA=","avatar_url":"https://avatars3.githubusercontent.com/u/6210390?v=4","gravatar_id":"","url":"https://api.github.com/users/Samsung","html_url":"https://github.com/Samsung","followers_url":"https://api.github.com/users/Samsung/followers","following_url":"https://api.github.com/users/Samsung/following{/other_user}","gists_url":"https://api.github.com/users/Samsung/gists{/gist_id}","starred_url":"https://api.github.com/users/Samsung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Samsung/subscriptions","organizations_url":"https://api.github.com/users/Samsung/orgs","repos_url":"https://api.github.com/users/Samsung/repos","events_url":"https://api.github.com/users/Samsung/events{/privacy}","received_events_url":"https://api.github.com/users/Samsung/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Samsung/TizenRT","description":"TizenRT is a lightweight RTOS-based platform to support low-end IoT devices","fork":false,"url":"https://api.github.com/repos/Samsung/TizenRT","forks_url":"https://api.github.com/repos/Samsung/TizenRT/forks","keys_url":"https://api.github.com/repos/Samsung/TizenRT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Samsung/TizenRT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Samsung/TizenRT/teams","hooks_url":"https://api.github.com/repos/Samsung/TizenRT/hooks","issue_events_url":"https://api.github.com/repos/Samsung/TizenRT/issues/events{/number}","events_url":"https://api.github.com/repos/Samsung/TizenRT/events","assignees_url":"https://api.github.com/repos/Samsung/TizenRT/assignees{/user}","branches_url":"https://api.github.com/repos/Samsung/TizenRT/branches{/branch}","tags_url":"https://api.github.com/repos/Samsung/TizenRT/tags","blobs_url":"https://api.github.com/repos/Samsung/TizenRT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Samsung/TizenRT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Samsung/TizenRT/git/refs{/sha}","trees_url":"https://api.github.com/repos/Samsung/TizenRT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Samsung/TizenRT/statuses/{sha}","languages_url":"https://api.github.com/repos/Samsung/TizenRT/languages","stargazers_url":"https://api.github.com/repos/Samsung/TizenRT/stargazers","contributors_url":"https://api.github.com/repos/Samsung/TizenRT/contributors","subscribers_url":"https://api.github.com/repos/Samsung/TizenRT/subscribers","subscription_url":"https://api.github.com/repos/Samsung/TizenRT/subscription","commits_url":"https://api.github.com/repos/Samsung/TizenRT/commits{/sha}","git_commits_url":"https://api.github.com/repos/Samsung/TizenRT/git/commits{/sha}","comments_url":"https://api.github.com/repos/Samsung/TizenRT/comments{/number}","issue_comment_url":"https://api.github.com/repos/Samsung/TizenRT/issues/comments{/number}","contents_url":"https://api.github.com/repos/Samsung/TizenRT/contents/{+path}","compare_url":"https://api.github.com/repos/Samsung/TizenRT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Samsung/TizenRT/merges","archive_url":"https://api.github.com/repos/Samsung/TizenRT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Samsung/TizenRT/downloads","issues_url":"https://api.github.com/repos/Samsung/TizenRT/issues{/number}","pulls_url":"https://api.github.com/repos/Samsung/TizenRT/pulls{/number}","milestones_url":"https://api.github.com/repos/Samsung/TizenRT/milestones{/number}","notifications_url":"https://api.github.com/repos/Samsung/TizenRT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Samsung/TizenRT/labels{/name}","releases_url":"https://api.github.com/repos/Samsung/TizenRT/releases{/id}","deployments_url":"https://api.github.com/repos/Samsung/TizenRT/deployments","created_at":"2017-02-20T04:38:30Z","updated_at":"2018-10-22T07:28:03Z","pushed_at":"2018-10-22T09:47:21Z","git_url":"git://github.com/Samsung/TizenRT.git","ssh_url":"git@github.com:Samsung/TizenRT.git","clone_url":"https://github.com/Samsung/TizenRT.git","svn_url":"https://github.com/Samsung/TizenRT","homepage":"","size":106532,"stargazers_count":196,"watchers_count":196,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":270,"mirror_url":null,"archived":false,"open_issues_count":67,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":270,"open_issues":67,"watchers":196,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Samsung/TizenRT/pulls/2366"},"html":{"href":"https://github.com/Samsung/TizenRT/pull/2366"},"issue":{"href":"https://api.github.com/repos/Samsung/TizenRT/issues/2366"},"comments":{"href":"https://api.github.com/repos/Samsung/TizenRT/issues/2366/comments"},"review_comments":{"href":"https://api.github.com/repos/Samsung/TizenRT/pulls/2366/comments"},"review_comment":{"href":"https://api.github.com/repos/Samsung/TizenRT/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Samsung/TizenRT/pulls/2366/commits"},"statuses":{"href":"https://api.github.com/repos/Samsung/TizenRT/statuses/03a8aa1639c15bdfca625f023a378b118b960d7a"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"thapav"}}