diff options
author | DoHyun Pyun <dh79.pyun@samsung.com> | 2016-09-19 14:35:12 +0900 |
---|---|---|
committer | DoHyun Pyun <dh79.pyun@samsung.com> | 2016-09-22 10:01:37 +0900 |
commit | 0b8d2f30ce7ea814489f4f3d0f6a77110cbba7df (patch) | |
tree | aeffc510222d5ea3dea84b07e55ffa53d34b7999 | |
parent | 8c87554b50dbfe70a88ca84d101ab9584de88ee3 (diff) | |
download | bluetooth-0b8d2f30ce7ea814489f4f3d0f6a77110cbba7df.tar.gz bluetooth-0b8d2f30ce7ea814489f4f3d0f6a77110cbba7df.tar.bz2 bluetooth-0b8d2f30ce7ea814489f4f3d0f6a77110cbba7df.zip |
Add the get uuid name API into public native APIsubmit/tizen/20160922.015934accepted/tizen/wearable/20160922.233131accepted/tizen/tv/20160922.233139accepted/tizen/mobile/20160922.233121accepted/tizen/ivi/20160922.233145accepted/tizen/common/20160922.120558
Change-Id: I03ec693515984055c3b9cff7072d54aa356841fc
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
-rw-r--r-- | include/bluetooth_private.h | 20 | ||||
-rw-r--r-- | include/mobile/bluetooth.h | 18 | ||||
-rw-r--r-- | include/tv/bluetooth.h | 18 | ||||
-rw-r--r-- | include/wearable/bluetooth.h | 18 |
4 files changed, 54 insertions, 20 deletions
diff --git a/include/bluetooth_private.h b/include/bluetooth_private.h index 01e5c8f..92cdf2c 100644 --- a/include/bluetooth_private.h +++ b/include/bluetooth_private.h @@ -808,26 +808,6 @@ void _bt_adapter_le_invoke_advertising_state_cb(int handle, int result, bt_adapt bool _bt_gatt_is_legacy_client_mode(void); #endif - -/** - * @internal - * @ingroup CAPI_NETWORK_BLUETOOTH_MODULE - * @brief Gets the specification name from the UUID - * @since_tizen 3.0 - * - * @remarks @a name must be released with free() by you. - * - * @param[in] uuid The UUID - * @param[out] name The specification name which defined from www.bluetooth.org - * @return 0 on success, otherwise a negative error value. - * @retval #BT_ERROR_NONE Successful - * @retval #BT_ERROR_INVALID_PARAMETER Invalid parameter - * @retval #BT_ERROR_NOT_SUPPORTED Not supported - * - * @see bt_gatt_get_uuid() - */ -int bt_get_uuid_name(const char *uuid, char **name); - bt_gatt_client_h _bt_gatt_get_client(const char *remote_addr); const GSList* _bt_gatt_get_server_list(void); diff --git a/include/mobile/bluetooth.h b/include/mobile/bluetooth.h index 1cf7180..85b2c15 100644 --- a/include/mobile/bluetooth.h +++ b/include/mobile/bluetooth.h @@ -86,6 +86,24 @@ int bt_initialize(void); int bt_deinitialize(void); /** + * @ingroup CAPI_NETWORK_BLUETOOTH_MODULE + * @brief Gets the specification name for the given UUID. + * @since_tizen 3.0 + * + * @remarks The @a name must be released using free(). + * + * @param[in] uuid The UUID + * @param[out] name The specification name defined at www.bluetooth.com + * @return 0 on success, otherwise a negative error value. + * @retval #BT_ERROR_NONE Successful + * @retval #BT_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #BT_ERROR_NOT_SUPPORTED Not supported + * + * @see bt_gatt_get_uuid() + */ +int bt_get_uuid_name(const char *uuid, char **name); + +/** * @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE * @brief Gets the current state of local Bluetooth adapter. * @since_tizen 2.3 diff --git a/include/tv/bluetooth.h b/include/tv/bluetooth.h index 44c4f7c..efe32d6 100644 --- a/include/tv/bluetooth.h +++ b/include/tv/bluetooth.h @@ -86,6 +86,24 @@ int bt_initialize(void); int bt_deinitialize(void); /** + * @ingroup CAPI_NETWORK_BLUETOOTH_MODULE + * @brief Gets the specification name for the given UUID. + * @since_tizen 3.0 + * + * @remarks The @a name must be released using free(). + * + * @param[in] uuid The UUID + * @param[out] name The specification name defined at www.bluetooth.com + * @return 0 on success, otherwise a negative error value. + * @retval #BT_ERROR_NONE Successful + * @retval #BT_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #BT_ERROR_NOT_SUPPORTED Not supported + * + * @see bt_gatt_get_uuid() + */ +int bt_get_uuid_name(const char *uuid, char **name); + +/** * @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE * @brief Gets the current state of local Bluetooth adapter. * @since_tizen 2.3 diff --git a/include/wearable/bluetooth.h b/include/wearable/bluetooth.h index 8af1971..1b3b29a 100644 --- a/include/wearable/bluetooth.h +++ b/include/wearable/bluetooth.h @@ -86,6 +86,24 @@ int bt_initialize(void); int bt_deinitialize(void); /** + * @ingroup CAPI_NETWORK_BLUETOOTH_MODULE + * @brief Gets the specification name for the given UUID. + * @since_tizen 3.0 + * + * @remarks The @a name must be released using free(). + * + * @param[in] uuid The UUID + * @param[out] name The specification name defined at www.bluetooth.com + * @return 0 on success, otherwise a negative error value. + * @retval #BT_ERROR_NONE Successful + * @retval #BT_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #BT_ERROR_NOT_SUPPORTED Not supported + * + * @see bt_gatt_get_uuid() + */ +int bt_get_uuid_name(const char *uuid, char **name); + +/** * @ingroup CAPI_NETWORK_BLUETOOTH_ADAPTER_MODULE * @brief Gets the current state of local Bluetooth adapter. * @since_tizen 2.3.1 |