ctypes

Author yallop@gmail.com
License MIT
Homepage https://github.com/ocamllabs/ocaml-ctypes
Issue Tracker http://github.com/ocamllabs/ocaml-ctypes/issues
Tags { org:ocamllabs, org:mirage }
Maintainer yallop@gmail.com
Dependencies
& base-bytes
conf-pkg-config
ctypes-foreign
lwt
ocamlfind
ounit
Optional dependencies
| ctypes-foreign
mirage-xen
Available ocaml-version >= "4.01.0"
Published Dec 16, 2016
Source [http] http://github.com/ocamllabs/ocaml-ctypes/archive/0.11.2.tar.gz
72055750770278a84965bb81aec68d87
Statistics Installed 1890 times in last month.
Edit https://github.com/ocaml/opam-repository/tree/master/packages/ctypes/ctypes.0.11.2/opam

Combinators for binding to C libraries without writing any C.

ctypes is a library for binding to C libraries using pure OCaml. The primary aim is to make writing C extensions as straightforward as possible.

The core of ctypes is a set of combinators for describing the structure of C types -- numeric types, arrays, pointers, structs, unions and functions. You can use these combinators to describe the types of the functions that you want to call, then bind directly to those functions -- all without writing or generating any C!

To install the optional ctypes.foreign interface (which uses libffi to provide dynamic access to foreign libraries), you will need to also install the ctypes-foreign optional dependency:

opam install ctypes ctypes-foreign

This will make the ctypes.foreign ocamlfind subpackage available.