Sha256: 5302252bcc818aea8bafa56a6701b29d438d9ee4d945aed8b8955993bdc4ef82

Contents?: true

Size: 461 Bytes

Versions: 2

Compression:

Stored size: 461 Bytes

Contents

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

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gir_ffi-0.7.4 lib/gir_ffi/info_ext/i_arg_info.rb
gir_ffi-0.7.3 lib/gir_ffi/info_ext/i_arg_info.rb