lib/magic/api.rb in magic-0.0.1 vs lib/magic/api.rb in magic-0.0.2
- old
+ new
@@ -1,9 +1,9 @@
module Magic
module Api
extend FFI::Library
- ffi_lib Library.new.name
+ ffi_lib "magic.1"
attach_function :magic_open, [:int], :pointer
attach_function :magic_close, [:pointer], :void
attach_function :magic_file, [:pointer, :string], :pointer
# attach_function :magic_descriptor, [:pointer, :int], :string