mirror of
https://github.com/openharmony/third_party_rust_bindgen.git
synced 2026-07-20 22:56:53 -04:00
dc84da8b6d
* Some pages of the book's documentation markdown pages used `.html` in their links rather than `.md`. This evidently works with `mdBook`, but fails when viewing the pages of the book from the Github source tree. * The `.html` links were replaced with `.md` to fix this.
813 B
813 B
Create a wrapper.h Header
The wrapper.h file will include all the various headers containing
declarations of structs and functions we would like bindings for. In the
particular case of bzip2, this is pretty easy since the entire public API is
contained in a single header. For a project like SpiderMonkey,
where the public API is split across multiple header files and grouped by
functionality, we'd want to include all those headers we want to bind to in this
single wrapper.h entry point for bindgen.
Here is our wrapper.h:
#include <bzlib.h>
This is also where we would add any replacement types, if we were using some.