c++: Add extern "C" { } block to header files

Adds extern "C" { } blocks to header files so that they can be
safely used by C++ source files.

Change-Id: Ia4db0c36a5dac5d3de351184a297d2af0df64532
Signed-off-by: Peter Mitsis <peter.mitsis@windriver.com>
This commit is contained in:
Peter Mitsis 2016-01-22 12:38:49 -05:00 committed by Anas Nashif
commit a0e4568760
128 changed files with 1035 additions and 3 deletions

View file

@ -20,6 +20,10 @@
#ifndef __BT_CONN_H
#define __BT_CONN_H
#ifdef __cplusplus
extern "C" {
#endif
#if defined(CONFIG_BLUETOOTH_CENTRAL) || defined(CONFIG_BLUETOOTH_PERIPHERAL)
#include <stdbool.h>
@ -350,4 +354,8 @@ int bt_conn_auth_pincode_entry(struct bt_conn *conn, const char *pin);
#endif /* CONFIG_BLUETOOTH_BREDR */
#endif /* CONFIG_BLUETOOTH_SMP || CONFIG_BLUETOOTH_BREDR */
#ifdef __cplusplus
}
#endif
#endif /* __BT_CONN_H */