Sha256: 34f14661f6606ea26107e38aaa6e33093322f39826d9b93cea25cf94c7b19490

Contents?: true

Size: 493 Bytes

Versions: 9

Compression:

Stored size: 493 Bytes

Contents

# frozen_string_literal: true
module GirFFI
  module InfoExt
    # Extensions for GObjectIntrospection::IFunctionInfo needed by GirFFI
    module IFunctionInfo
      def argument_ffi_types
        super.tap do |types|
          types.unshift :pointer if method?
          types << :pointer if throws?
        end
      end

      def return_ffi_type
        return_type.to_ffi_type
      end
    end
  end
end

GObjectIntrospection::IFunctionInfo.send :include, GirFFI::InfoExt::IFunctionInfo

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
gir_ffi-0.11.1 lib/gir_ffi/info_ext/i_function_info.rb
gir_ffi-0.11.0 lib/gir_ffi/info_ext/i_function_info.rb
gir_ffi-0.10.2 lib/gir_ffi/info_ext/i_function_info.rb
gir_ffi-0.10.1 lib/gir_ffi/info_ext/i_function_info.rb
gir_ffi-0.10.0 lib/gir_ffi/info_ext/i_function_info.rb
gir_ffi-0.10.0.pre1 lib/gir_ffi/info_ext/i_function_info.rb
gir_ffi-0.9.5 lib/gir_ffi/info_ext/i_function_info.rb
gir_ffi-0.9.4 lib/gir_ffi/info_ext/i_function_info.rb
gir_ffi-0.9.3 lib/gir_ffi/info_ext/i_function_info.rb