From f59ead04f120a9a8ebff62a02e1ceb30661c5731 Mon Sep 17 00:00:00 2001 From: Cheoleun Moon Date: Tue, 25 Feb 2020 18:51:43 +0900 Subject: Add wifi_aware_unset_service_discovered_cb --- src/wifi-aware.c | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'src/wifi-aware.c') 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; -- cgit v1.2.3