Sha256: 1748de15e40bfc85ff9ad90dbcbc1a54253090e5d194b255251cc7b77f077439

Contents?: true

Size: 887 Bytes

Versions: 9

Compression:

Stored size: 887 Bytes

Contents

# frozen_string_literal: true

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

9 entries across 9 versions & 1 rubygems

Version Path
ffi-gdal-1.0.0.beta16 lib/ffi/cpl/progress.rb
ffi-gdal-1.0.0.beta15 lib/ffi/cpl/progress.rb
ffi-gdal-1.0.0.beta14 lib/ffi/cpl/progress.rb
ffi-gdal-1.0.0.beta13 lib/ffi/cpl/progress.rb
ffi-gdal-1.0.0.beta12 lib/ffi/cpl/progress.rb
ffi-gdal-1.0.0.beta11 lib/ffi/cpl/progress.rb
ffi-gdal-1.0.0.beta10 lib/ffi/cpl/progress.rb
ffi-gdal-1.0.0.beta9 lib/ffi/cpl/progress.rb
ffi-gdal-1.0.0.beta8 lib/ffi/cpl/progress.rb