Sha256: 34e7f3a680d28564334b1d95f38872da7d2014343686eb19773a9c2172d966bf

Contents?: true

Size: 856 Bytes

Versions: 2

Compression:

Stored size: 856 Bytes

Contents

require 'ffi'
require_relative '../../ext/ffi_library_function_checks'

module FFI
  module CPL
    module Progress
      extend ::FFI::Library
      ffi_lib [FFI::CURRENT_PROCESS, FFI::GDAL.gdal_library_path]

      #-------------------------------------------------------------------------
      # Functions
      #-------------------------------------------------------------------------
      attach_function :GDALCreateScaledProgress,
        [:double, :double, FFI::GDAL::GDAL.find_type(:GDALProgressFunc), :pointer],
        :pointer
      attach_function :GDALDestroyScaledProgress,
        %i[pointer],
        :void
      ScaledProgress = attach_function :GDALScaledProgress,
        %i[double string pointer],
        :int
      TermProgress = attach_function :GDALTermProgress,
        %i[double string pointer],
        :int
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ffi-gdal-1.0.0.beta7 lib/ffi/cpl/progress.rb
ffi-gdal-1.0.0.beta6 lib/ffi/cpl/progress.rb