Using (ocaml-)ctypes to build a shared library involving structs of function pointers. See the [thread on the ctypes mailing list][thread] for background.
Contents:
- [bindings.ml][bindings-ml], the inverted bindings themselves
- [gen.ml][gen-ml], the code generator
- [load.ml][load-ml], which links the bindings with the generated code
- [build.sh][build-sh], the build script
- [client.c][client-c], a client to test the library.