diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2016-12-16 11:21:21 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2016-12-16 11:23:33 +0200 |
commit | 97912743039bc98abb513360022e463faec3bea9 (patch) | |
tree | a3a6c320a76b6877167fbdaa7f0bce4596598d16 /samples/bluetooth | |
parent | 1c9da665c3340b3f3ddd65a8518852ac54f84cc5 (diff) |
Bluetooth: samples: Add extern "C" { } block to GATT header files
Adds extern "C" { } blocks to header files so that they can be
safely used by C++ applications.
Change-Id: I767a04635b38d8ef7a02e8c7da3a5c99b0bc7709
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'samples/bluetooth')
-rw-r--r-- | samples/bluetooth/gatt/bas.h | 8 | ||||
-rw-r--r-- | samples/bluetooth/gatt/cts.h | 8 | ||||
-rw-r--r-- | samples/bluetooth/gatt/dis.h | 8 | ||||
-rw-r--r-- | samples/bluetooth/gatt/gap.h | 8 | ||||
-rw-r--r-- | samples/bluetooth/gatt/hog.h | 8 | ||||
-rw-r--r-- | samples/bluetooth/gatt/hrs.h | 8 | ||||
-rw-r--r-- | samples/bluetooth/gatt/ipss.h | 8 |
7 files changed, 56 insertions, 0 deletions
diff --git a/samples/bluetooth/gatt/bas.h b/samples/bluetooth/gatt/bas.h index eff7990ef..616356b4c 100644 --- a/samples/bluetooth/gatt/bas.h +++ b/samples/bluetooth/gatt/bas.h @@ -18,5 +18,13 @@ * limitations under the License. */ +#ifdef __cplusplus +extern "C" { +#endif + void bas_init(void); void bas_notify(void); + +#ifdef __cplusplus +} +#endif diff --git a/samples/bluetooth/gatt/cts.h b/samples/bluetooth/gatt/cts.h index 47c42404f..9d0b21188 100644 --- a/samples/bluetooth/gatt/cts.h +++ b/samples/bluetooth/gatt/cts.h @@ -18,5 +18,13 @@ * limitations under the License. */ +#ifdef __cplusplus +extern "C" { +#endif + void cts_init(void); void cts_notify(void); + +#ifdef __cplusplus +} +#endif diff --git a/samples/bluetooth/gatt/dis.h b/samples/bluetooth/gatt/dis.h index 66e4e948f..442ec2995 100644 --- a/samples/bluetooth/gatt/dis.h +++ b/samples/bluetooth/gatt/dis.h @@ -18,4 +18,12 @@ * limitations under the License. */ +#ifdef __cplusplus +extern "C" { +#endif + void dis_init(const char *model, const char *manuf); + +#ifdef __cplusplus +} +#endif diff --git a/samples/bluetooth/gatt/gap.h b/samples/bluetooth/gatt/gap.h index f8e630557..6bcf123fc 100644 --- a/samples/bluetooth/gatt/gap.h +++ b/samples/bluetooth/gatt/gap.h @@ -18,4 +18,12 @@ * limitations under the License. */ +#ifdef __cplusplus +extern "C" { +#endif + void gap_init(const char *name, uint16_t appearance); + +#ifdef __cplusplus +} +#endif diff --git a/samples/bluetooth/gatt/hog.h b/samples/bluetooth/gatt/hog.h index c8f346e1b..15459f688 100644 --- a/samples/bluetooth/gatt/hog.h +++ b/samples/bluetooth/gatt/hog.h @@ -18,4 +18,12 @@ * limitations under the License. */ +#ifdef __cplusplus +extern "C" { +#endif + void hog_init(void); + +#ifdef __cplusplus +} +#endif diff --git a/samples/bluetooth/gatt/hrs.h b/samples/bluetooth/gatt/hrs.h index 2652a5da5..a39b8fe3b 100644 --- a/samples/bluetooth/gatt/hrs.h +++ b/samples/bluetooth/gatt/hrs.h @@ -18,5 +18,13 @@ * limitations under the License. */ +#ifdef __cplusplus +extern "C" { +#endif + void hrs_init(uint8_t blsc); void hrs_notify(void); + +#ifdef __cplusplus +} +#endif diff --git a/samples/bluetooth/gatt/ipss.h b/samples/bluetooth/gatt/ipss.h index 2a5bd0c82..01e344f72 100644 --- a/samples/bluetooth/gatt/ipss.h +++ b/samples/bluetooth/gatt/ipss.h @@ -18,5 +18,13 @@ * limitations under the License. */ +#ifdef __cplusplus +extern "C" { +#endif + void ipss_init(void); int ipss_advertise(void); + +#ifdef __cplusplus +} +#endif |