package ctypes

  1. Overview
  2. Docs
Combinators for binding to C libraries without writing any C

Install

Dune Dependency

Authors

Maintainers

Sources

0.4.1.tar.gz
md5=08a284c379e341d57b6918611b5bc56b

Description

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.

Published: 07 Apr 2015

Dependencies (4)

  1. conf-pkg-config build
  2. ocamlfind build
  3. base-bytes
  4. ocaml >= "4.00.0" & < "4.06"

Dev Dependencies

None

Used by (91)

  1. arakoon >= "1.8.6" & < "1.8.12"
  2. argon2
  3. async_ssl >= "112.24.02" & != "113.33.07" & < "v0.13.0"
  4. avroc
  5. bitgenerators
  6. cf < "0.5.0"
  7. checked_oint
  8. cmark
  9. cmarker
  10. ctypes-foreign = "0.18.0"
  11. ctypes-zarith
  12. ctypes_stubs_js
  13. directories < "0.2"
  14. flock
  15. fsevents
  16. gdal >= "0.3.0"
  17. gobject-introspection
  18. hacl-star-raw < "0.4.0"
  19. hardcaml-llvmsim >= "0.3.0"
  20. hardcaml-vpi
  21. iocaml >= "0.4.3"
  22. iocaml-kernel >= "0.4.4"
  23. kqueue < "0.2.0"
  24. libudev
  25. lilv
  26. llvm >= "3.7"
  27. lmdb < "1.0"
  28. lp-glpk < "0.4.0"
  29. lp-gurobi
  30. lz4 >= "1.0.1"
  31. memcpy < "0.2.1"
  32. mpg123 < "0.2"
  33. nanomsg
  34. nebula
  35. netlink >= "0.2.1"
  36. nocrypto >= "0.3.1" & < "0.5.0"
  37. ocephes < "0.8.2"
  38. opasswd >= "0.9.3"
  39. opencc < "transition"
  40. opencc0
  41. opencc1
  42. opencc1_1
  43. oplay
  44. orocksdb
  45. osbx < "1.1.1"
  46. osx-attr < "0.2.0"
  47. osx-cf
  48. osx-fsevents
  49. osx-mount
  50. osx-secure-transport
  51. osx-xattr < "0.3.0"
  52. owl < "0.9.0"
  53. pci
  54. pkcs11-driver
  55. portaudio_c_bindings
  56. posix-bindings
  57. posix-getopt
  58. posix-signal
  59. posix-socket
  60. posix-socket-unix
  61. posix-time2
  62. posix-types >= "2.0.0"
  63. posix-uname
  64. protocol-9p < "0.5.1"
  65. qcstm >= "0.1.1"
  66. quickjs
  67. raylib < "0.3.1"
  68. reed-solomon-erasure
  69. sanlock
  70. sarek >= "20210823"
  71. sattools
  72. sodium >= "0.2.0" & != "0.3.0" & < "0.6.0"
  73. spin >= "0.8.0"
  74. spoc >= "20170724"
  75. srt
  76. sys-socket
  77. sys-socket-unix
  78. tgls >= "0.8.3"
  79. tsdl >= "0.8.1" & < "0.9.1"
  80. tsdl-image
  81. tsdl-mixer
  82. tsdl-ttf
  83. unix-errno < "0.3.0" | >= "0.4.1" & < "0.6.0"
  84. unix-fcntl
  85. unix-sys-resource
  86. unix-sys-stat < "0.5.0"
  87. unix-time
  88. unix-type-representations
  89. wasmer
  90. zstandard < "v0.13.0"
  91. zstd < "0.4"

Conflicts (1)

  1. mirage-xen >= "6.0.0"