Sha256: 7dd728d77cd9fff91fab1e2fe6e16b1a25f66f0622c2148c79ed16002c2e889e

Contents?: true

Size: 990 Bytes

Versions: 3

Compression:

Stored size: 990 Bytes

Contents

# frozen_string_literal: true

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], :strptr
      attach_function :GOA2GetRefreshToken, %i[string string], :strptr
      attach_function :GOA2GetAccessToken, %i[string string], :strptr
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ffi-gdal-1.1.0 lib/ffi/cpl/http.rb
ffi-gdal-1.0.4 lib/ffi/cpl/http.rb
ffi-gdal-1.0.3 lib/ffi/cpl/http.rb