lib/onnxruntime/ffi.rb in onnxruntime-0.3.1 vs lib/onnxruntime/ffi.rb in onnxruntime-0.3.2

- old
+ new

@@ -18,11 +18,11 @@ class Api < ::FFI::Struct layout \ :CreateStatus, callback(%i[int string], :pointer), :GetErrorCode, callback(%i[pointer], :pointer), - :GetErrorMessage, callback(%i[pointer], :string), + :GetErrorMessage, callback(%i[pointer], :pointer), :CreateEnv, callback(%i[int string pointer], :pointer), :CreateEnvWithCustomLogger, callback(%i[], :pointer), :EnableTelemetryEvents, callback(%i[pointer], :pointer), :DisableTelemetryEvents, callback(%i[pointer], :pointer), :CreateSession, callback(%i[pointer string pointer pointer], :pointer), @@ -148,10 +148,10 @@ class ApiBase < ::FFI::Struct # use uint32 instead of uint32_t # to prevent "unable to resolve type" error on Ubuntu layout \ :GetApi, callback(%i[uint32], Api.by_ref), - :GetVersionString, callback(%i[], :string) + :GetVersionString, callback(%i[], :pointer) end attach_function :OrtGetApiBase, %i[], ApiBase.by_ref end end