Sha256: 16470b715987aa8c00ffdc5dfea6ffae0ad4306773e9a7bff05bc45d72ee856a

Contents?: true

Size: 848 Bytes

Versions: 16

Compression:

Stored size: 848 Bytes

Contents

require 'ffi'

# Interface to the c++ api.
module Dither
  module API
    extend FFI::Library
    LIB_DIR = File.expand_path('../..', __FILE__)
    ffi_lib %W[#{LIB_DIR}/dither.so #{LIB_DIR}/dither.dll]

    attach_function :dither_ipog_new, [:int], :pointer
    attach_function :dither_ipog_add_parameter_int, [:pointer, :int, :pointer, :int], :void
    attach_function :dither_ipog_run, [:pointer], :void
    attach_function :dither_ipog_size, [:pointer], :int
    attach_function :dither_ipog_display_raw_solution, [:pointer], :void
    attach_function :dither_ipog_fill, [:pointer, :pointer], :void
    attach_function :dither_ipog_add_constraint, [:pointer, :pointer, :int], :void
    attach_function :dither_ipog_add_previously_tested, [:pointer, :pointer, :int], :void
    # attach_function :dither_ipog_delete, [:pointer], :void
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
dither-0.2.7-java lib/dither/api.rb
dither-0.2.7 lib/dither/api.rb
dither-0.2.6 lib/dither/api.rb
dither-0.2.6-java lib/dither/api.rb
dither-0.2.5 lib/dither/api.rb
dither-0.2.5-java lib/dither/api.rb
dither-0.2.2-java lib/dither/api.rb
dither-0.2.2 lib/dither/api.rb
dither-0.2.1 lib/dither/api.rb
dither-0.2.1-java lib/dither/api.rb
dither-0.2.0-java lib/dither/api.rb
dither-0.2.0 lib/dither/api.rb
dither-0.2.0.rc5 lib/dither/api.rb
dither-0.2.0.rc5-java lib/dither/api.rb
dither-0.2.0.rc4-java lib/dither/api.rb
dither-0.2.0.rc4 lib/dither/api.rb