From a202e08059e1ef62492fca485339609062afa4c5 Mon Sep 17 00:00:00 2001 From: Wootak Jung Date: Fri, 13 Nov 2020 10:22:34 +0900 Subject: [PATCH] Modify TDS transport type enums Change-Id: I35449316d8c2bf6a15ced2288d0e8b1c5320f087 Signed-off-by: Wootak Jung --- include/bluetooth_type_internal.h | 2 +- src/bluetooth-tds.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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); -- 2.34.1