Skip to content

Commit

Permalink
Move wrapper header file instruction back to the Bindgen slide.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Githinji committed Feb 17, 2025
1 parent 599dbd0 commit 9913a9b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
11 changes: 10 additions & 1 deletion src/android/interoperability/with-c/bindgen.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
# Using Bindgen

The [bindgen](https://rust-lang.github.io/rust-bindgen/introduction.html) tool
can auto-generate bindings from a C header file (in our case `libbirthday_wrapper.h`):
can auto-generate bindings from a C header file.

Create a wrapper header file for the library (not strictly needed in this
example):

_interoperability/bindgen/libbirthday_wrapper.h_:

```c
{{#include bindgen/libbirthday_wrapper.h:include}}
```
_interoperability/bindgen/Android.bp_:
Expand Down
9 changes: 0 additions & 9 deletions src/android/interoperability/with-c/c-library.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,4 @@ _interoperability/bindgen/Android.bp_:

```javascript
{{#include bindgen/Android.bp:libbirthday}}
```

Create a wrapper header file for the library (not strictly needed in this
example):

_interoperability/bindgen/libbirthday_wrapper.h_:

```c
{{#include bindgen/libbirthday_wrapper.h:include}}
```

0 comments on commit 9913a9b

Please sign in to comment.