Sha256: 8cba355c15b5585b35d99f091dab6117c5d4882d81d2052b999601ff3da029e1

Contents?: true

Size: 476 Bytes

Versions: 13

Compression:

Stored size: 476 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.include GirFFI::InfoExt::IArgInfo

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
gir_ffi-0.17.0 lib/gir_ffi/info_ext/i_arg_info.rb
gir_ffi-0.16.1 lib/gir_ffi/info_ext/i_arg_info.rb
gir_ffi-0.16.0 lib/gir_ffi/info_ext/i_arg_info.rb
gir_ffi-0.15.9 lib/gir_ffi/info_ext/i_arg_info.rb
gir_ffi-0.15.8 lib/gir_ffi/info_ext/i_arg_info.rb
gir_ffi-0.15.7 lib/gir_ffi/info_ext/i_arg_info.rb
gir_ffi-0.15.6 lib/gir_ffi/info_ext/i_arg_info.rb
gir_ffi-0.15.5 lib/gir_ffi/info_ext/i_arg_info.rb
gir_ffi-0.15.4 lib/gir_ffi/info_ext/i_arg_info.rb
gir_ffi-0.15.3 lib/gir_ffi/info_ext/i_arg_info.rb
gir_ffi-0.15.2 lib/gir_ffi/info_ext/i_arg_info.rb
gir_ffi-0.15.1 lib/gir_ffi/info_ext/i_arg_info.rb
gir_ffi-0.15.0 lib/gir_ffi/info_ext/i_arg_info.rb