X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Ftethering.h;h=fb9d874a06059c6ee597ea25ac4f4f3cacc723a4;hb=a5203bc356d9186a4e0c18704537d25f33d57595;hp=a8cf64e84060ff3be592b01efa1d57248b9d9ca1;hpb=62108c86f3a092ea38ba091bf6e60a0e51b15891;p=platform%2Fcore%2Fapi%2Ftethering.git diff --git a/include/tethering.h b/include/tethering.h index a8cf64e..fb9d874 100644 --- a/include/tethering.h +++ b/include/tethering.h @@ -1420,6 +1420,31 @@ int tethering_wifi_set_wps_pin(tethering_h tethering, const char *wps_pin); */ int tethering_wifi_is_sharing_supported(tethering_h tethering, bool *supported); +/** + * @brief Sets the wifi-sharing flag. + * @since_tizen 6.0 + * @privlevel platform + * @param[in] tethering The tethering handle + * @param[in] sharing @c true if wifi-sharing is set, \n @c false if wifi-sharing is unset + * @return 0 on success, otherwise a negative error value + * @retval #TETHERING_ERROR_NONE Successful + * @retval #TETHERING_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #TETHERING_ERROR_NOT_SUPPORTED API is not supported + */ +int tethering_wifi_set_sharing(tethering_h tethering, bool sharing); + +/** + * @brief Gets the wifi-sharing flag. + * @since_tizen 6.0 + * @privlevel platform + * @param[in] tethering The tethering handle + * @param[out] sharing @c true if wifi-sharing is set, \n @c otherwise false. + * @return 0 on success, otherwise a negative error value + * @retval #TETHERING_ERROR_NONE Successful + * @retval #TETHERING_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #TETHERING_ERROR_NOT_SUPPORTED API is not supported + */ +int tethering_wifi_get_sharing(tethering_h tethering, bool *sharing); /** * @}