{"schema_version":1,"metadata":{"branch":"release","release":"7.9","architecture":"amd64","generated_at":"2026-09-09T04:04:02.361425+00:00","source_url":"https://cdn.openbsd.org/pub/OpenBSD/7.9/packages/amd64/sqlports-7.54.tgz","source_sha256":"2de00144847bf9da3a365be982f101dbb55d591ed7a915ea94984a16ab0e0404","package_count":12059,"source_kind":"sqlports"},"package":{"name":"c2ffi-18.1.0.0p0","path":"devel/c2ffi","url":"/packages/release/devel/c2ffi/","comment":"extract FFI definitions from C, C++, and Objective C","homepage":"https://github.com/rpav/c2ffi","maintainer":"Sebastien Marie <semarie@kapouay.eu.org>","description":"This is a tool for extracting definitions from C, C++, and Objective C\nheaders for use with foreign function call interfaces.\n\nThere are generally two steps to using `c2ffi`:\n\n- Generate output for a particular header or file, gathering macro\n  definitions (with the `-M <file>.c` parameter)\n\n- Generate output for macro definitions by running `c2ffi` again on\n  the *generated* file (without `-M`)\n\nCurrently JSON is the default output.  This is in a rather wordy\nhierarchical format, with each object having a \"tag\" field which\ndescribes it.  All objects are contained in an array.  This should\nmake it fairly easy (or at least far easier than parsing C yourself)\nto transform into language-specific bindings.\n\nThe following language bindings exist for `c2ffi`:\n\n- [cl-autowrap](https://github.com/rpav/cl-autowrap/): Create bindings\n  in Common Lisp from a `.h` with `c2ffi` using a simple `(c-include \"file.h\")`\n\n- [c2ffi-ruby](https://github.com/rpav/c2ffi-ruby): Uses the JSON\n  from c2ffi to produce a nicely-formatted Ruby file for ruby-ffi.\n","package_architecture":"amd64","stem":"c2ffi","readme":null,"dependencies":[{"path":"devel/llvm/19","type":"library","package_spec":"","url":"/packages/release/devel/llvm/19/"},{"path":"devel/llvm/19","type":"build","package_spec":"","url":"/packages/release/devel/llvm/19/"},{"path":"devel/cmake/core","type":"build","package_spec":"STEM->=4","url":"/packages/release/devel/cmake/core/"},{"path":"devel/ninja","type":"build","package_spec":"","url":"/packages/release/devel/ninja/"}],"reverse_dependencies":{"count":0,"url":null},"categories":["devel"],"flavors":[],"only_for_architectures":["aarch64","amd64","arm","i386","mips64","mips64el","powerpc","powerpc64","riscv64","alpha","hppa","sparc64","m88k","sh"],"not_for_architectures":[]}}
