From 6f6c5c278c91e8cad76c96e8e3184f6101a67403 Mon Sep 17 00:00:00 2001 From: Jim Benjamin Luther Date: Wed, 4 Dec 2024 17:04:45 +0100 Subject: [PATCH] Add bt_ APIs to the generated bindings Add bt_ APIs to the generated bindings to enable bluetooth application development. Signed-off-by: Jim Benjamin Luther --- zephyr-sys/build.rs | 1 + zephyr-sys/wrapper.h | 1 + 2 files changed, 2 insertions(+) diff --git a/zephyr-sys/build.rs b/zephyr-sys/build.rs index a393a501..5d43b42d 100644 --- a/zephyr-sys/build.rs +++ b/zephyr-sys/build.rs @@ -72,6 +72,7 @@ fn main() -> Result<()> { .allowlist_function("gpio_.*") .allowlist_function("sys_.*") .allowlist_function("z_log.*") + .allowlist_function("bt_.*") .allowlist_item("E.*") .allowlist_item("K_.*") .allowlist_item("ZR_.*") diff --git a/zephyr-sys/wrapper.h b/zephyr-sys/wrapper.h index 53550dcc..8c3ca158 100644 --- a/zephyr-sys/wrapper.h +++ b/zephyr-sys/wrapper.h @@ -34,6 +34,7 @@ extern int errno; #include #include #include +#include /* * bindgen will output #defined constant that resolve to simple numbers. There are some symbols