Add APIs to support Wi-Fi tethering txpower 77/69977/4 accepted/tizen/common/20160524.150700 accepted/tizen/ivi/20160525.004148 accepted/tizen/mobile/20160525.004048 accepted/tizen/tv/20160525.004107 accepted/tizen/wearable/20160525.004133 submit/tizen/20160524.071953
authorSeonah Moon <seonah1.moon@samsung.com>
Fri, 20 May 2016 07:24:10 +0000 (16:24 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Tue, 24 May 2016 06:48:44 +0000 (15:48 +0900)
Change-Id: I2281f0e95da2a25f0efb609c3dac084c7df01776
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
include/tethering.h

index 52bac1b..8f46946 100644 (file)
@@ -1024,6 +1024,38 @@ int tethering_wifi_set_mode(tethering_h tethering, tethering_wifi_mode_type_e ty
 int tethering_wifi_get_mode(tethering_h tethering, tethering_wifi_mode_type_e *type);
 
 /**
+ * @brief Sets txpower for Wi-Fi tethering.
+ * @since_tizen 3.0
+ * @privlevel platform
+ * @privilege http://tizen.org/privilege/tethering.admin
+ * @param[in] tethering The tethering handle
+ * @param[in] txpower  value of txpower to be set
+ * @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_SUPPORT_API  API not supported
+ * @retval  #TETHERING_ERROR_PERMISSION_DENIED  Permission Denied
+ * @see tethering_wifi_get_txpower()
+ */
+int tethering_wifi_set_txpower(tethering_h tethering, unsigned int txpower);
+
+/**
+ * @brief Gets txpower for Wi-Fi tethering.
+ * @since_tizen 3.0
+ * @privlevel platform
+ * @privilege http://tizen.org/privilege/tethering.admin
+ * @param[in] tethering The tethering handle
+ * @param[out] txpower  value of txpower
+ * @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_SUPPORT_API  API not supported
+ * @retval  #TETHERING_ERROR_PERMISSION_DENIED  Permission Denied
+ * @see tethering_wifi_set_txpower()
+ */
+int tethering_wifi_get_txpower(tethering_h tethering, unsigned int *txpower);
+
+/**
  * @}
  */