OSDN Git Service

Allow C++ code to check bt_stack_config options
authorMyles Watson <mylesgw@google.com>
Thu, 5 May 2016 18:57:54 +0000 (11:57 -0700)
committerMyles Watson <mylesgw@google.com>
Thu, 5 May 2016 19:06:42 +0000 (12:06 -0700)
Stack configuration options are parsed in C.

Bug: 28485365
Change-Id: I046ef5c676256a8da23bf8c0a7d1eeb1e9603c05

include/stack_config.h

index a211634..ff7f955 100644 (file)
 #include "osi/include/config.h"
 #include "module.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 static const char STACK_CONFIG_MODULE[] = "stack_config_module";
 
 typedef struct {
@@ -34,3 +38,7 @@ typedef struct {
 } stack_config_t;
 
 const stack_config_t *stack_config_get_interface();
+
+#ifdef __cplusplus
+}
+#endif