]> granicus.if.org Git - esp-idf/commitdiff
component/bt : api category
authorTian Hao <tianhao@espressif.com>
Sat, 5 Nov 2016 12:40:07 +0000 (20:40 +0800)
committerTian Hao <tianhao@espressif.com>
Sat, 5 Nov 2016 12:40:07 +0000 (20:40 +0800)
19 files changed:
components/bt/bluedroid/api/esp_app_sec.c [moved from components/bt/bluedroid/stack_api/bt_app_sec.c with 99% similarity]
components/bt/bluedroid/api/esp_gap_api.c [moved from components/bt/bluedroid/stack_api/bt_gap_api.c with 98% similarity]
components/bt/bluedroid/api/esp_gatt_api.c [moved from components/bt/bluedroid/stack_api/bt_app_api.c with 99% similarity]
components/bt/bluedroid/api/esp_sdp_api.c [moved from components/bt/bluedroid/stack_api/bt_sdp_api.c with 99% similarity]
components/bt/bluedroid/api/include/esp_bt_common.h [moved from components/bt/bluedroid/stack_api/include/bt_api_common.h with 66% similarity]
components/bt/bluedroid/api/include/esp_bt_defs.h [moved from components/bt/bluedroid/stack_api/include/bt_app_defs.h with 99% similarity]
components/bt/bluedroid/api/include/esp_gap_api.h [moved from components/bt/bluedroid/stack_api/include/bt_gap_api.h with 68% similarity]
components/bt/bluedroid/api/include/esp_gatt_api.h [moved from components/bt/bluedroid/stack_api/include/bt_app_api.h with 98% similarity]
components/bt/bluedroid/api/include/esp_sdp_api.h [moved from components/bt/bluedroid/stack_api/include/bt_sdp_api.h with 93% similarity]
components/bt/bluedroid/api/include/esp_sec_api.h [moved from components/bt/bluedroid/stack_api/include/bt_app_sec.h with 65% similarity]
components/bt/bluedroid/profiles/esp/blufi/include/blufi_adv.h
components/bt/bluedroid/profiles/esp/include/button_pro.h
components/bt/bluedroid/profiles/std/include/dis_api.h
components/bt/bluedroid/profiles/std/include/prf_defs.h
components/bt/component.mk
examples/06_bluedroid_demos/components/bluedroid_demos/app_client_profiles/battery_c/battery_c.c
examples/06_bluedroid_demos/components/bluedroid_demos/app_core/bt_app.c
examples/06_bluedroid_demos/components/bluedroid_demos/app_project/SampleServerProject.c
examples/06_bluedroid_demos/components/bluedroid_demos/include/bt_app_common.h [moved from components/bt/bluedroid/stack_api/include/bt_app_common.h with 100% similarity]

similarity index 99%
rename from components/bt/bluedroid/stack_api/bt_app_sec.c
rename to components/bt/bluedroid/api/esp_app_sec.c
index fa4831650d35ccea8187356d39c10fd32d475d66..60d48bf046062b54e58f6fa594e42ed31bf0d8b8 100644 (file)
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-#include "bt_app_sec.h"
 #include <stdlib.h>        // standard library
 #include <string.h>
 
+#include "esp_sec_api.h"
 
 
 extern void srand (unsigned int seed);
similarity index 98%
rename from components/bt/bluedroid/stack_api/bt_gap_api.c
rename to components/bt/bluedroid/api/esp_gap_api.c
index 65feb289bb5dd3f77a6e50f46603d1e79bc1f376..7313e4a1779d8e581d27bce5a63d03bd3b958cfb 100644 (file)
@@ -12,7 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-#include "bt_gap_api.h"
+#include "esp_gap_api.h"
 #include "bta_api.h"
 #include "bt_trace.h"
 
similarity index 99%
rename from components/bt/bluedroid/stack_api/bt_app_api.c
rename to components/bt/bluedroid/api/esp_gatt_api.c
index 7b23880d1b2d4bf38d623c61292fd5915e87a5b7..20e2b1ad46f9808fa5f20e5a223c69bdf2b881f4 100644 (file)
@@ -12,7 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-#include "bt_app_api.h"
+#include "esp_gatt_api.h"
 #include "btm_ble_api.h"
 //#include "btm_ble_int.h"
 
similarity index 99%
rename from components/bt/bluedroid/stack_api/bt_sdp_api.c
rename to components/bt/bluedroid/api/esp_sdp_api.c
index 66330bb295d76c88b610453cd708c4a0f6bfcf2e..a6498822633228e9dfb740bc584f3656afeb3fa8 100644 (file)
@@ -12,7 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-#include "bt_sdp_api.h"
+#include "esp_sdp_api.h"
 
 
 esp_err_t esp_bt_sdp_enable(bt_sdp_cb_t *cback)
similarity index 66%
rename from components/bt/bluedroid/stack_api/include/bt_api_common.h
rename to components/bt/bluedroid/api/include/esp_bt_common.h
index 7c4859db2465950fd3f823f210a4135cbdd4fe3a..ea9404ff1d3a45ce22a074c818912cc8932e75c1 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef __BT_API_COMMON_H__
-#define __BT_API_COMMON_H__
+#ifndef __ESP_BT_COMMON_H__
+#define __ESP_BT_COMMON_H__
 
 #include <stdint.h>
 
@@ -10,4 +10,4 @@ typedef tBT_UUID esp_bt_uuid_t;   /* tBT_UUID in "bt_types.h" */
 
 typedef BD_ADDR esp_bd_addr_t;    /* BD_ADDR in bt_types.h */
 
-#endif /* __BT_API_COMMON_H__ */
+#endif /* __ESP_BT_COMMON_H__ */
similarity index 99%
rename from components/bt/bluedroid/stack_api/include/bt_app_defs.h
rename to components/bt/bluedroid/api/include/esp_bt_defs.h
index 91ecdcaf1e73f7221f652901a84a98270c80d46e..a6fee49bc93d8ea07197dd4c5e3da59909071665 100644 (file)
@@ -1,6 +1,5 @@
-
-#ifndef _BT_APP_DEFS_H__
-#define        _BT_APP_DEFS_H__
+#ifndef __ESP_BT_DEFS_H__
+#define        __ESP_BT_DEFS_H__
 
 
 #include "bta_api.h"
@@ -329,4 +328,4 @@ extern void ble_set_scan_rsp(esp_ble_adv_data_cfg_t *scan_rsp_data,
 
 
 
-#endif         ///_BT_APP_DEFS_H__
\ No newline at end of file
+#endif         ///__ESP_BT_DEFS_H__
similarity index 68%
rename from components/bt/bluedroid/stack_api/include/bt_gap_api.h
rename to components/bt/bluedroid/api/include/esp_gap_api.h
index ac74996f5c30853eeaf789d55faa1355c2013f14..809da0a199a704cb1b394c1dfe6299baa635fc64 100644 (file)
@@ -1,10 +1,10 @@
-#ifndef __BT_GAP_API_H__
-#define __BT_GAP_API_H__
+#ifndef __ESP_GAP_API_H__
+#define __ESP_GAP_API_H__
 
 #include <stdint.h>
 
 #include "esp_err.h"
-#include "bt_api_common.h"
+#include "esp_bt_common.h"
 
 enum {
     BT_SCAN_MODE_NONE,
@@ -15,4 +15,4 @@ typedef uint16_t bt_scan_mode_t;
 
 esp_err_t esp_bt_gap_set_scan_mode(bt_scan_mode_t mode);
 
-#endif /* __BT_GAP_API_H__ */
+#endif /* __ESP_GAP_API_H__ */
similarity index 98%
rename from components/bt/bluedroid/stack_api/include/bt_app_api.h
rename to components/bt/bluedroid/api/include/esp_gatt_api.h
index fc557e3aa3c0630af82643dba1f1a022468d8580..7a09921659d48ca190ff1123744985e5eb9943ca 100644 (file)
@@ -1,19 +1,8 @@
-// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-
-//     http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
+#ifndef __ESP_GATT_API_H__
+#define __ESP_GATT_API_H__
 
 #include "bt_types.h"
-#include "bt_app_defs.h"
+#include "esp_bt_defs.h"
 #include "bta_gatt_api.h"
 #include "bt_prf_sys.h"
 
@@ -921,4 +910,4 @@ void esp_ble_gatts_close(uint16_t conn_id);
 void esp_prf_app_register(uint8_t prf_id, void *p_cback);
 
 
-
+#endif /* __ESP_GATT_API_H__ */
similarity index 93%
rename from components/bt/bluedroid/stack_api/include/bt_sdp_api.h
rename to components/bt/bluedroid/api/include/esp_sdp_api.h
index a4b8f2d2a9312f445090fe9f8a7adb8f9b9e18a4..3b5b587adee208139e25f36f1155505a473dd2fc 100644 (file)
@@ -1,9 +1,9 @@
-#ifndef __BT_SDP_API_H__
-#define __BT_SDP_API_H__
+#ifndef __ESP_SDP_API_H__
+#define __ESP_SDP_API_H__
 
 #include <stdint.h>
 #include "esp_err.h"
-#include "bt_api_common.h"
+#include "esp_bt_common.h"
 #include "bta_sdp_api.h"
 #include "bt_sdp.h"
 
@@ -113,6 +113,5 @@ bool esp_bt_sdp_add_service_class_id_list(uint32_t handle,
                                           uint16_t *p_service_uuids);
 
 bool esp_bt_sdp_delete_attribute(uint32_t handle, uint16_t attr_id);
-/**********************************************************************************************/
-/**********************************************************************************************/
-#endif /* __BT_SDP_API_H__ */
+
+#endif /* __ESP_SDP_API_H__ */
similarity index 65%
rename from components/bt/bluedroid/stack_api/include/bt_app_sec.h
rename to components/bt/bluedroid/api/include/esp_sec_api.h
index 6b7310fd9148f8bc3423299f06cfccd8a96d72dc..e078d73ff5adc325f039e81981a577bc0001ec9a 100644 (file)
@@ -1,16 +1,5 @@
-// Copyright 2015-2016 Espressif Systems (Shanghai) PTE LTD
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-
-//     http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
+#ifndef __ESP_SEC_API_H__
+#define __ESP_SEC_API_H__
 
 #include "bt_types.h"
 
@@ -76,3 +65,4 @@ void app_ble_sec_gen_ltk(UINT8 key_size);
 
 void app_ble_security_start(void);
 
+#endif /* __ESP_SEC_API_H__ */
index 1b1185ee4e28b47cb127eef21e1d1d6f4bbcad8f..a01b288c4912e4c2cd5008e0ff0b1d1a86f34340 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "bta_api.h"
 #include "btm_ble_api.h"
-#include "bt_app_defs.h"
+#include "esp_bt_defs.h"
 
 typedef struct
 {
index 67d4de4e45171e07c86da32cd458720a9b9732de..f6397f253568a64e0806fdbeaa3ad98923950915 100644 (file)
@@ -18,7 +18,7 @@
 #include "bt_target.h"
 #include "gatt_api.h"
 #include "gattdefs.h"
-#include "bt_app_api.h"
+#include "esp_gatt_api.h"
 
 #define KEY_SUCCESS             GATT_SUCCESS
 #define KEY_ILLEGAL_PARAM       GATT_ILLEGAL_PARAMETER
@@ -123,4 +123,4 @@ void button_msg_notify(uint16_t len, uint8_t *button_msg);
 
 extern button_env_cb_t button_cb_env;
 
-#endif ///BUT_PROFILE_CFG
\ No newline at end of file
+#endif ///BUT_PROFILE_CFG
index f84a7e62fc93452010998abb32cedadd7ab92bd9..95bf24ac59c7d5cc0e3b8992a0b4c103330ccaa4 100644 (file)
@@ -28,7 +28,7 @@
 #include "bt_target.h"
 #include "gatt_api.h"
 #include "gattdefs.h"
-#include "bt_app_api.h"
+#include "esp_gatt_api.h"
 
 #define DIS_SUCCESS             GATT_SUCCESS
 #define DIS_ILLEGAL_PARAM       GATT_ILLEGAL_PARAMETER
index 8b9ed62ef2f678dd8ffc112c740888d2d7b0e6df..242bb27fa47fcda928786a3a4187db8e5bd9ebf2 100644 (file)
@@ -20,7 +20,7 @@
 #include "bta_gatts_int.h"
 #include "bta_gatt_api.h"
 #include "bt_types.h"
-#include "bt_app_defs.h"
+#include "esp_bt_defs.h"
 
 
 #define ATT_HANDLE_LEN                          0x0002
index 5bb01a813879fc67c0cf1b74006490bda2359cf1..9ba0d16641f4d2cbd52f4c5a2086a38ccac7d1ab 100644 (file)
@@ -27,7 +27,7 @@ COMPONENT_ADD_INCLUDEDIRS :=  bluedroid/bta/include                   \
                                bluedroid/stack/sdp/include             \
                                bluedroid/stack/smp/include             \
                                bluedroid/stack/include                 \
-                               bluedroid/stack_api/include             \
+                               bluedroid/api/include           \
                                bluedroid/include                       \
                                include 
 
@@ -77,7 +77,7 @@ COMPONENT_SRCDIRS :=  bluedroid/bta/dm                        \
                        bluedroid/stack/sdp                     \
                        bluedroid/stack/smp                     \
                        bluedroid/stack                         \
-                       bluedroid/stack_api                     \
+                       bluedroid/api                   \
                        bluedroid                               \
                        .
 
index f5cd9964b3025c66edd6813466b318fe35d0a946..9500f77090096379990f44fddc8355f22d7d315b 100644 (file)
@@ -31,7 +31,7 @@
 #include "btm_api.h"
 #include "bt_types.h"
 #include "gattc_profile.h"
-#include "bt_app_api.h"
+#include "esp_gatt_api.h"
 
 #define BT_BD_ADDR_STR         "%02x:%02x:%02x:%02x:%02x:%02x"
 #define BT_BD_ADDR_HEX(addr)   addr[0], addr[1], addr[2], addr[3], addr[4], addr[5]
index 7507aa8445a835d9f2bfa6b7b769011dd930955e..1f699201fc127abe767a00429213262d93318017 100644 (file)
@@ -12,7 +12,7 @@
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-#include "bt_app_defs.h"
+#include "esp_bt_defs.h"
 
 
  /*******************************************************************************
index c631cac1e3f035fd74231b0385776ae9a423bc71..e87f33783782a9e53a4c67596ece0f9fa1a1ea5a 100644 (file)
 #include "app_button.h"
 #include "hid_le_prf.h"
 
-#include "bt_app_api.h"
+#include "esp_gatt_api.h"
 
 //
 
 #include "hcimsgs.h"
-#include "bt_app_defs.h"
+#include "esp_bt_defs.h"
 
 
 #define BT_BD_ADDR_STR         "%02x:%02x:%02x:%02x:%02x:%02x"