Skip to content

[jnigen] [ffigen] Unify Dart API #2062

Open
@HosseinYousefi

Description

@HosseinYousefi
  • ffigen uses FfiGen().run(...). jnigen uses the top level generateJniBindings
  • ffigen has an Uri output. jnigen has a OutputConfig since it also has a multifile mode
  • ffigen has multiple functions like shouldExposeFunctionTypedefFunc, ... jnigen has a List<Visitor> that combines all such functions
  • ffigen and jnigen both use Uri, should we use Strings instead to specify paths? (related: Making build/link APIs use Strings to represent filepaths instead of Uris #1506)
  • ffigen has DeclarationFilters for excluding elements, jnigen has a List<Visitor> that combines all such filters

@liamappelbe, let's discuss the points above and other points that come up in this issue.

cc @dcharkes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions