Sha256: 4c386f8927e4383ba87d19c7ad717e4a307627cf18a47933802d004109d123fd

Contents?: true

Size: 959 Bytes

Versions: 4

Compression:

Stored size: 959 Bytes

Contents

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

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

      #-------------------------------------------------------------------------
      # Functions
      #-------------------------------------------------------------------------
      attach_function :CPLHTTPEnabled, [], :bool
      attach_function :CPLHTTPFetch, %i[string pointer], HTTPResult.ptr
      attach_function :CPLHTTPCleanup, [], :void
      attach_function :CPLHTTPDestroyResult, [HTTPResult.ptr], :void
      attach_function :CPLHTTPParseMultipartMime, [HTTPResult.ptr], :bool

      attach_function :GOA2GetAuthorizationURL, %i[string], :string
      attach_function :GOA2GetRefreshToken, %i[string string], :string
      attach_function :GOA2GetAccessToken, %i[string string], :string
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ffi-gdal-1.0.0.beta7 lib/ffi/cpl/http.rb
ffi-gdal-1.0.0.beta6 lib/ffi/cpl/http.rb
ffi-gdal-1.0.0.beta5 lib/ffi/cpl/http.rb
ffi-gdal-1.0.0.beta4 lib/ffi/cpl/http.rb