Sha256: 29d7a0974cd3fdb7a80bda025d8a26fc610d572696ecce9488b7d955078c3040

Contents?: true

Size: 456 Bytes

Versions: 10

Compression:

Stored size: 456 Bytes

Contents

module GirFFI
  module InfoExt
    # Extensions for GObjectIntrospection::ICallbackInfo needed by GirFFI
    module ICallbackInfo
      def to_ffi_type
        Builder.build_class(self)
      end

      def argument_ffi_types
        args.map(&:to_callback_ffi_type)
      end

      def return_ffi_type
        return_type.to_callback_ffi_type
      end
    end
  end
end

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

Version data entries

10 entries across 10 versions & 1 rubygems

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