ctypesversion
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.
Author | yallop@gmail.com |
---|---|
License | MIT |
Published | |
Homepage | https://github.com/yallop/ocaml-ctypes |
Issue Tracker | http://github.com/yallop/ocaml-ctypes/issues |
Maintainer | yallop@gmail.com |
Dependencies |
|
Optional dependencies | |
Conflicts | |
Source [http] | https://github.com/yallop/ocaml-ctypes/archive/0.13.0.tar.gz sha256=81f61e13b789b57b8055d4a22f0e41ae1309e0b9da86b0472bdb7bed0537f4f7 md5=fe066ce52fb44921314208c3e0ee6c53 |
Edit | https://github.com/ocaml/opam-repository/tree/master/packages/ctypes/ctypes.0.13.0/opam |
Required by
- ahrocksdb
- arakoon>=1.8.6 & <1.8.12
- argon2
- async_ssl>=113.33.07 & <v0.13.0
- avroc
- bitgenerators
- ceph
- cf<0.5.0
- checked_oint
- cmark
- cmarker
- ctypes-build
- ctypes-foreignpost & =0.18.0
- ctypes-zarith
- ctypes_stubs_jswith-test
- directories<0.2
- dlm
- dunewith-dev-setup & >=3.17.0
- eigen<0.0.5
- eris
- flock
- fsevents
- gdal>=0.3.0
- gobject-introspection
- hacl-star-raw<0.4.0
- hardcaml-llvmsim>=0.3.0
- hardcaml-vpi
- imguiml
- iocaml>=0.4.3
- iocaml-kernel>=0.4.4
- kqueue<0.2.0
- libdash<0.3
- libudev
- lilv
- llvm>=3.7
- lmdb<1.0
- lp-glpk
- lp-gurobi
- luv<0.5.9
- lz4>=1.1.1
- mariadb
- memcpy>=0.2.1
- monocypher
- mpg123!=0.2
- nanomsg
- nebula
- netlink>=0.2.1
- ocephes>=0.8.2
- opasswd>=1.0.1
- opencc<transition
- opencc0
- opencc1
- opencc1_1
- oplay
- orocksdb
- osbxbuild & <1.1.1
- osx-acl
- osx-attr>=0.2.0
- osx-cf>=0.1.1
- osx-fsevents>=0.1.1
- osx-membership
- osx-mount>=0.1.1
- osx-secure-transport
- osx-xattr>=0.3.0
- owl<0.9.0
- pari
- pari-bindings
- pci
- pkcs11<0.9.0
- pkcs11-driver
- portaudio_c_bindings
- portmidi
- posix-base
- posix-bindings
- posix-getopt
- posix-signal
- posix-socket
- posix-socket-unix
- posix-time2
- posix-types
- posix-uname
- ppx_cstubs
- protocol-9p<0.5.1
- py
- qcstmwith-test & >=0.1.1
- quickjs
- raylib<0.3.1
- reed-solomon-erasure
- sanlock
- sarek>=20210823
- sattools
- sodium>=0.2.0 & <0.3.0 | >=0.6.0
- spinwith-test & >=0.8.0
- spoc>=20170724
- srt<0.3.1
- sys-socket
- sys-socket-unix
- tensorflow
- tgls>=0.8.3
- torch<v0.16.0
- tsdl>=0.8.1 & <0.9.7
- tsdl-image
- tsdl-mixer
- tsdl-ttf
- unix-errno>=0.4.1
- unix-fcntl>=0.3.3
- unix-sys-resource
- unix-sys-stat
- unix-time
- unix-type-representationswith-test
- uring-trace
- wasmer
- wasmtime
- xedbindings
- xxhash
- yaml<2.1.0
- yara
- yices2_bindings
- zstandard<v0.13.0
- zstd>=0.2
Optionally used by
- hardcaml=1.2.0
- pkcs11>=0.9.0 & <0.18.0
- qbf
- unix-dirent
- unix-errno>=0.3.0 & <0.5.0
- unix-unistd
- zbar