tree: c054a78f47b3098b869ff42d4cb8135833a30060
  1. .gitignore
  2. generated_bindings.dart
  3. pubspec.yaml
  4. readme.md
pkgs/ffigen/example/libclang-example/readme.md

Libclang example

Demonstrates generating bindings for Libclang. This example actually uses a C file used in this package itself, (wrapper.c), which adds a few more wrapper functions atop Libclang.

Generating bindings

At the root of this example (example/libclang-example), run -

pub run ffigen

This will generate bindings in a file: generated_bindings.dart.