From: Wootak Jung Date: Thu, 12 Nov 2020 02:22:21 +0000 (+0900) Subject: Add TDS transport type X-Git-Tag: submit/tizen/20201113.003453^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0817d48b8aaacce8b66bf00f5208c6b27b618803;p=platform%2Fcore%2Fapi%2Fbluetooth.git Add TDS transport type Change-Id: Ic6283adb0d6b5ee20d1f973a7f11c12ce17ad573 Signed-off-by: Wootak Jung --- 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;