summaryrefslogtreecommitdiff
path: root/src/wifi-aware.c
diff options
context:
space:
mode:
authorCheoleun Moon <chleun.moon@samsung.com>2020-02-25 18:51:43 +0900
committerCheoleun Moon <chleun.moon@samsung.com>2020-02-25 18:51:43 +0900
commitf59ead04f120a9a8ebff62a02e1ceb30661c5731 (patch)
tree99839f330b14bb91081cd4ae45225be3cec2be85 /src/wifi-aware.c
parentd3ae510615702da7690c70fa74ba75722811b3d8 (diff)
downloadwifi-aware-f59ead04f120a9a8ebff62a02e1ceb30661c5731.tar.gz
wifi-aware-f59ead04f120a9a8ebff62a02e1ceb30661c5731.tar.bz2
wifi-aware-f59ead04f120a9a8ebff62a02e1ceb30661c5731.zip
Add wifi_aware_unset_service_discovered_cb
Diffstat (limited to 'src/wifi-aware.c')
-rw-r--r--src/wifi-aware.c19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/wifi-aware.c b/src/wifi-aware.c
index 5fd1ac0..4d73b97 100644
--- a/src/wifi-aware.c
+++ b/src/wifi-aware.c
@@ -489,14 +489,27 @@ API int wifi_aware_session_update_subscribe(wifi_aware_session_h session,
return WIFI_AWARE_ERROR_NONE;
}
-API int wifi_aware_set_discovery_result_cb(wifi_aware_session_h session,
- wifi_aware_discovery_result_cb callback, void *user_data)
+API int wifi_aware_set_service_discovered_cb(wifi_aware_session_h session,
+ wifi_aware_service_discovered_cb callback, void *user_data)
{
__WIFI_AWARE_FUNC_ENTER__;
CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_WIFI_AWARE);
RET_VAL_IF(session == NULL, WIFI_AWARE_ERROR_INVALID_PARAMETER, "wifi_aware_session_h is NULL");
- _wifi_aware_set_discovery_result_cb(session, callback, user_data);
+ _wifi_aware_set_service_discovered_cb(session, callback, user_data);
+
+ __WIFI_AWARE_FUNC_EXIT__;
+ return WIFI_AWARE_ERROR_NONE;
+}
+
+API int wifi_aware_unset_service_discovered_cb(wifi_aware_session_h session,
+ wifi_aware_service_discovered_cb callback, void *user_data)
+{
+ __WIFI_AWARE_FUNC_ENTER__;
+ CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_WIFI_AWARE);
+ RET_VAL_IF(session == NULL, WIFI_AWARE_ERROR_INVALID_PARAMETER, "wifi_aware_session_h is NULL");
+
+ _wifi_aware_unset_service_discovered_cb(session);
__WIFI_AWARE_FUNC_EXIT__;
return WIFI_AWARE_ERROR_NONE;