Sha256: e0c8e106005ceda974afd9dbe5a4a5c1d2a0f4ac0894f78884ce94a5f36b2d89

Contents?: true

Size: 480 Bytes

Versions: 9

Compression:

Stored size: 480 Bytes

Contents

# frozen_string_literal: true
module GirFFI
  module InfoExt
    # Extensions for GObjectIntrospection::IArgInfo needed by GirFFI
    module IArgInfo
      def to_ffi_type
        return :pointer if direction != :in
        argument_type.to_ffi_type
      end

      def to_callback_ffi_type
        return :pointer if direction != :in
        argument_type.to_callback_ffi_type
      end
    end
  end
end

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

Version data entries

9 entries across 9 versions & 1 rubygems

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