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
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;
}
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;
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)
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)
{
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)
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)