-
Notifications
You must be signed in to change notification settings - Fork 721
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add callback to override field visibility
- Loading branch information
Jethro Beekman
committed
May 25, 2023
1 parent
da0c42c
commit cc966e4
Showing
7 changed files
with
358 additions
and
42 deletions.
There are no files selected for viewing
185 changes: 185 additions & 0 deletions
185
bindgen-tests/tests/expectations/tests/field-visibility-callback.rs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// bindgen-flags: --default-visibility private | ||
// bindgen-parse-callbacks: field-visibility-default-private | ||
|
||
struct my_struct { | ||
int a; | ||
int private_b; | ||
int c: 1; | ||
int private_d: 1; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.