tree: a4a66c876c0190555897a51d2b61ddac783856e6
  1. .github/
  2. bin/
  3. lib/
  4. tool/
  5. .gitignore
  6. analysis_options.yaml
  7. AUTHORS
  8. CHANGELOG.md
  9. LICENSE
  10. pubspec.yaml
  11. README.md
pkgs/jni/third_party/ffigen_patch_jni/README.md

Developer's Note

One-off patch of ffigen for generating bindings of some JNI structs.

Only changes to ffigen source are made in lib/src/code_generator/compound.dart file. The purpose of these changes is to write the extension methods along with certain types, which make calling function pointer fields easier.

The modified FFIGEN is used to generate lib/src/third_party/jni_bindings_generated.dart using both header files in src/ and third_party/jni.h (the JNI header file from Android NDK). This provides bulk of our interface to JNI through FFI.