lib/ngt/ffi.rb in ngt-0.2.3 vs lib/ngt/ffi.rb in ngt-0.2.4

- old
+ new

@@ -1,14 +1,10 @@ module Ngt module FFI extend ::FFI::Library - begin - ffi_lib Ngt.ffi_lib - rescue LoadError => e - raise e - end + ffi_lib Ngt.ffi_lib # https://github.com/yahoojapan/NGT/blob/master/lib/NGT/Capi.h # keep same order # use uint32 instead of uint32_t @@ -50,9 +46,12 @@ attach_function :ngt_get_object_space, %i[pointer pointer], :pointer attach_function :ngt_get_object_as_float, %i[pointer int pointer], :pointer attach_function :ngt_get_object_as_integer, %i[pointer int pointer], :pointer attach_function :ngt_destroy_property, %i[pointer], :void attach_function :ngt_close_index, %i[pointer], :void + attach_function :ngt_get_property_edge_size_for_creation, %i[pointer pointer], :int16 + attach_function :ngt_get_property_edge_size_for_search, %i[pointer pointer], :int16 + attach_function :ngt_get_property_distance_type, %i[pointer pointer], :int32 attach_function :ngt_create_error_object, %i[], :pointer attach_function :ngt_get_error_string, %i[pointer], :string attach_function :ngt_destroy_error_object, %i[pointer], :void begin