I am trying to return a struct by value from a C function, and then pass it by value to another C function using cffi-libffi.
Here are the relevant functions and structure with links to the definitions in the header file:
(use-foreign-library "libtree-sitter.so")
;; https://github.com/tree-sitter/tree-sitter/blob/master/lib/include/tree_sitter/api.h#L99
(defcstruct ts-node
(context :uint32 :count 4)
(id :pointer)