1
0
mirror of https://github.com/bspeice/aeron-rs synced 2024-12-21 21:38:09 -05:00

Whitelist driver bindings

Much cleaner namespace to work with
This commit is contained in:
Bradlee Speice 2019-09-22 15:30:17 -04:00
parent 4310eb7e73
commit 646d58fd1b

View File

@ -95,6 +95,8 @@ pub fn main() {
let bindings = bindgen::Builder::default() let bindings = bindgen::Builder::default()
.clang_arg(&format!("-I{}", header_path.display())) .clang_arg(&format!("-I{}", header_path.display()))
.header("bindings.h") .header("bindings.h")
.whitelist_function("aeron_.*")
.whitelist_type("aeron_.*")
.generate() .generate()
.expect("Unable to generate aeron_driver bindings"); .expect("Unable to generate aeron_driver bindings");