mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-29 04:20:20 +00:00
add C++ protection for BLE headers
This commit is contained in:
parent
431d68e3ef
commit
dd2731ded9
@ -39,6 +39,10 @@
|
||||
#include <stdint.h>
|
||||
#include "att.h"
|
||||
|
||||
#if defined __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
* @brief setup ATT server
|
||||
* @param db attribute database created by compile-gatt.ph
|
||||
@ -68,3 +72,7 @@ void att_server_notify(uint16_t handle, uint8_t *value, uint16_t value_len);
|
||||
* @brief indicate value change to client. client is supposed to reply with an indication_response
|
||||
*/
|
||||
void att_server_indicate(uint16_t handle, uint8_t *value, uint16_t value_len);
|
||||
|
||||
#if defined __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
@ -38,6 +38,10 @@
|
||||
|
||||
#include <btstack/utils.h>
|
||||
|
||||
#if defined __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
||||
A Central Device DB is only required for signed writes
|
||||
|
@ -36,6 +36,10 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#if defined __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef enum {
|
||||
GAP_RANDOM_ADDRESS_TYPE_OFF = 0,
|
||||
GAP_RANDOM_ADDRESS_NON_RESOLVABLE,
|
||||
@ -54,4 +58,7 @@ void gap_random_address_set_mode(gap_random_address_type_t random_address_type);
|
||||
*/
|
||||
void gap_random_address_set_update_period(int period_ms);
|
||||
|
||||
#if defined __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user