From 0817d48b8aaacce8b66bf00f5208c6b27b618803 Mon Sep 17 00:00:00 2001 From: Wootak Jung Date: Thu, 12 Nov 2020 11:22:21 +0900 Subject: [PATCH] Add TDS transport type Change-Id: Ic6283adb0d6b5ee20d1f973a7f11c12ce17ad573 Signed-off-by: Wootak Jung --- include/bluetooth_type_internal.h | 6 ++++-- src/bluetooth-tds.c | 8 ++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/include/bluetooth_type_internal.h b/include/bluetooth_type_internal.h index b21591e..7b01470 100644 --- a/include/bluetooth_type_internal.h +++ b/include/bluetooth_type_internal.h @@ -924,8 +924,10 @@ typedef enum { * @since_tizen 3.0 */ typedef enum { - BT_TDS_TRANSPORT_BT = 0x01, /* Transport BR-EDR */ - BT_TDS_TRANSPORT_CUSTOM, /* Transport custom */ + BT_TDS_TRANSPORT_BT = 0x01, /**< Transport BR-EDR */ + 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 2a665a6..b4ae58b 100644 --- a/src/bluetooth-tds.c +++ b/src/bluetooth-tds.c @@ -165,6 +165,14 @@ 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_WIFI_NAN: + 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_WIFI_SVC_ADV: + 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; -- 2.7.4