Sha256: 08451db13670c0818086a75e65d5ff5704ac0e18d77b1af94be3390102a14b23

Contents?: true

Size: 463 Bytes

Versions: 12

Compression:

Stored size: 463 Bytes

Contents

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

12 entries across 12 versions & 1 rubygems

Version Path
gir_ffi-0.9.2 lib/gir_ffi/info_ext/i_function_info.rb
gir_ffi-0.9.1 lib/gir_ffi/info_ext/i_function_info.rb
gir_ffi-0.9.0 lib/gir_ffi/info_ext/i_function_info.rb
gir_ffi-0.8.6 lib/gir_ffi/info_ext/i_function_info.rb
gir_ffi-0.8.5 lib/gir_ffi/info_ext/i_function_info.rb
gir_ffi-0.8.4 lib/gir_ffi/info_ext/i_function_info.rb
gir_ffi-0.8.3 lib/gir_ffi/info_ext/i_function_info.rb
gir_ffi-0.8.2 lib/gir_ffi/info_ext/i_function_info.rb
gir_ffi-0.8.1 lib/gir_ffi/info_ext/i_function_info.rb
gir_ffi-0.8.0 lib/gir_ffi/info_ext/i_function_info.rb
gir_ffi-0.7.10 lib/gir_ffi/info_ext/i_function_info.rb
gir_ffi-0.7.9 lib/gir_ffi/info_ext/i_function_info.rb