add 'extern C' in header files

This commit is contained in:
snake 2016-09-23 14:54:30 +08:00
parent 7b79e4c9ae
commit 6bb5a93221

View File

@ -18,6 +18,11 @@
#include "freertos/FreeRTOS.h"
#include "esp_err.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef void (* bt_app_startup_cb_t)(void *param);
esp_err_t esp_bt_startup(bt_app_startup_cb_t cb, void *ctx);
@ -54,4 +59,8 @@ void API_vhci_host_send_packet(uint8_t *data, uint16_t len);
*/
void API_vhci_host_register_callback(const vhci_host_callback_t *callback);
#ifdef __cplusplus
}
#endif
#endif /* __BT_H__ */