From: Wootak Jung Date: Fri, 13 Nov 2020 01:22:34 +0000 (+0900) Subject: Modify TDS transport type enums X-Git-Tag: submit/tizen/20201202.002505~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a202e08059e1ef62492fca485339609062afa4c5;p=platform%2Fcore%2Fapi%2Fbluetooth.git Modify TDS transport type enums Change-Id: I35449316d8c2bf6a15ced2288d0e8b1c5320f087 Signed-off-by: Wootak Jung --- diff --git a/include/bluetooth_type_internal.h b/include/bluetooth_type_internal.h index 7b01470..5184759 100644 --- a/include/bluetooth_type_internal.h +++ b/include/bluetooth_type_internal.h @@ -925,9 +925,9 @@ typedef enum { */ typedef enum { BT_TDS_TRANSPORT_BT = 0x01, /**< Transport BR-EDR */ + BT_TDS_TRANSPORT_CUSTOM, /**< Transport custom */ BT_TDS_TRANSPORT_WIFI_NAN, /**< Wi-Fi Alliance Neighbor Awareness Networking */ BT_TDS_TRANSPORT_WIFI_SVC_ADV, /**< Wi-Fi Alliance Service Advertisement */ - BT_TDS_TRANSPORT_CUSTOM, /**< Transport custom */ /* ... */ BT_TDS_TRANSPORT_INVALID } bt_tds_transport_e; diff --git a/src/bluetooth-tds.c b/src/bluetooth-tds.c index b4ae58b..29b0533 100644 --- a/src/bluetooth-tds.c +++ b/src/bluetooth-tds.c @@ -165,6 +165,9 @@ int bt_tds_provider_create(bt_tds_provider_h *provider, bt_tds_transport_e trans error_code = BT_ERROR_NOT_SUPPORTED; BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); return error_code; + case BT_TDS_TRANSPORT_CUSTOM: + tds_transport = BLUETOOTH_TDS_TRANSPORT_CUSTOM; + break; case BT_TDS_TRANSPORT_WIFI_NAN: error_code = BT_ERROR_NOT_SUPPORTED; BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); @@ -173,9 +176,6 @@ int bt_tds_provider_create(bt_tds_provider_h *provider, bt_tds_transport_e trans error_code = BT_ERROR_NOT_SUPPORTED; BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code); return error_code; - case BT_TDS_TRANSPORT_CUSTOM: - tds_transport = BLUETOOTH_TDS_TRANSPORT_CUSTOM; - break; default: error_code = BT_ERROR_INVALID_PARAMETER; BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code);