Remove set_enable_termination_event apis
authorCheoleun Moon <chleun.moon@samsung.com>
Mon, 23 Mar 2020 01:16:23 +0000 (10:16 +0900)
committerCheoleun Moon <chleun.moon@samsung.com>
Mon, 23 Mar 2020 01:16:23 +0000 (10:16 +0900)
include/wifi-aware.h
src/wifi-aware-private.c
src/wifi-aware.c

index 86da22f..75e7744 100644 (file)
@@ -264,16 +264,6 @@ int wifi_aware_publish_set_service_specific_info(wifi_aware_publish_h publish, c
 int wifi_aware_publish_set_match_filter(wifi_aware_publish_h publish, const unsigned char *match_filter, size_t len);
 
 /**
- * @brief TODO (Need decision to add) Set whether notifying a termination of the service or not.
- * @since_tizen 6.0
- * @param[in] publish
- * @param[in] enable
- * @return     0 on success, otherwise a negative error value
- * @retval     #WIFI_AWARE_ERROR_NONE
- */
-int wifi_aware_publish_set_enable_termination_event(wifi_aware_publish_h publish, bool enable);
-
-/**
  * @brief Set whether the ranging function is supported or not.
  * @since_tizen 6.0
  * @param[in] publish
index d2b91b0..711ea9e 100644 (file)
@@ -620,7 +620,7 @@ void _wifi_aware_publish_set_default_values(wifi_aware_publish_h publish)
        req->publish_type = WIFI_AWARE_PUBLISH_TYPE_UNSOLICITED;
        req->specific_info_len = 0;
        req->match_filter_len = 0;
-       req->enable_termination_event = false;
+       req->enable_termination_event = true;
        req->enable_ranging = false;
 }
 
@@ -660,12 +660,6 @@ void _wifi_aware_publish_set_match_filter(wifi_aware_publish_h publish,
        req->match_filter_len = len;
 }
 
-void _wifi_aware_publish_set_enable_termination_event(wifi_aware_publish_h publish, bool enable)
-{
-       wifi_aware_publish_request_s *req = (wifi_aware_publish_request_s *)publish;
-       req->enable_termination_event = enable;
-}
-
 void _wifi_aware_publish_set_enable_ranging(wifi_aware_publish_h publish, bool enable)
 {
        wifi_aware_publish_request_s *req = (wifi_aware_publish_request_s *)publish;
@@ -761,7 +755,7 @@ void _wifi_aware_subscribe_set_default_values(
        req->specific_info_len = 0;
        //memset(req->match_filter[WIFI_AWARE_MAX_MATCH_FILTER_LEN], 0, WIFI_AWARE_MAX_MATCH_FILTER_LEN);
        req->match_filter_len = 0;
-       req->enable_termination_event = false;
+       req->enable_termination_event = true;
 }
 
 void _wifi_aware_subscribe_set_ttl(wifi_aware_subscribe_h subscribe, unsigned short ttl)
@@ -801,12 +795,6 @@ void _wifi_aware_subscribe_set_match_filter(wifi_aware_subscribe_h subscribe,
        req->match_filter_len = len;
 }
 
-void _wifi_aware_subscribe_set_enable_termination_event(wifi_aware_subscribe_h subscribe, bool enable)
-{
-       wifi_aware_subscribe_request_s *req = (wifi_aware_subscribe_request_s *)subscribe;
-       req->enable_termination_event = enable;
-}
-
 static void __session_set_subscribe_config(wifi_aware_session_h session_handle,
                wifi_aware_subscribe_h subscribe)
 {
index eb80dec..426169e 100644 (file)
@@ -266,20 +266,6 @@ API int wifi_aware_publish_set_match_filter(wifi_aware_publish_h publish,
        return WIFI_AWARE_ERROR_NONE;
 }
 
-API int wifi_aware_publish_set_enable_termination_event(
-               wifi_aware_publish_h publish,
-               bool enable)
-{
-       __WIFI_AWARE_FUNC_ENTER__;
-       CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_WIFI_AWARE);
-       RET_VAL_IF(publish == NULL, WIFI_AWARE_ERROR_INVALID_PARAMETER, "wifi_aware_publish_h is NULL");
-
-       _wifi_aware_publish_set_enable_termination_event(publish, enable);
-
-       __WIFI_AWARE_FUNC_EXIT__;
-       return WIFI_AWARE_ERROR_NONE;
-}
-
 API int wifi_aware_publish_set_enable_ranging(
                wifi_aware_publish_h publish,
                bool enable)
@@ -450,20 +436,6 @@ API int wifi_aware_subscribe_set_match_filter(
        return WIFI_AWARE_ERROR_NONE;
 }
 
-API int wifi_aware_subscribe_set_enable_termination_event(
-               wifi_aware_subscribe_h subscribe,
-               bool enable)
-{
-       __WIFI_AWARE_FUNC_ENTER__;
-       CHECK_FEATURE_SUPPORTED(TIZEN_FEATURE_WIFI_AWARE);
-       RET_VAL_IF(subscribe == NULL, WIFI_AWARE_ERROR_INVALID_PARAMETER, "wifi_aware_subscribe_h is NULL");
-
-       _wifi_aware_subscribe_set_enable_termination_event(subscribe, enable);
-
-       __WIFI_AWARE_FUNC_EXIT__;
-       return WIFI_AWARE_ERROR_NONE;
-}
-
 API int wifi_aware_session_subscribe(wifi_aware_session_h session,
                wifi_aware_subscribe_h subscribe,
                wifi_aware_subscribed_cb callback, void *user_data)