Skip to content
Ilya Sher edited this page Dec 22, 2018 · 5 revisions

NGS FFI Design

Requirements

  • Support FFI calls
  • Must be cross-platform ready

Design

  • FFI namespace for generic/base FFI functionality
  • FFI::libffi namespace for the libffi library
  • As with other NGS components, the amount of C code that deals with FFI should be minimal, as much as possible should be in NGS.

TODO / Open Issues

  • libffi does not cover Windows
  • Errors handling / exceptions
  • How to import constants from libraries? Are they only mentioned in *.h files?

Resources