Find file
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (17 sloc) 549 Bytes
FFIckle - Ruby FFI generator
Want to C libraries in Ruby? That's FFIckle.
FFIckle takes your C headers and turns them into FFI Ruby code so you don't
have to translate C into FFI yourself.
require 'ffickle'
lib ='libgphoto2',
ffi = lib.to_ffi
puts ffi
eval ffi
pointer = Libgphoto2.gp_library_version 1
puts pointer.read_pointer.read_string
* Add enum, struct, union
* Support for arrays
* Add tests