Sha256: 9e5de6a03e2e23dbe532dd98ed7020db99d61baefddd3cfbbc0ec87f6e93ba92

Contents?: true

Size: 487 Bytes

Versions: 6

Compression:

Stored size: 487 Bytes

Contents

# frozen_string_literal: true

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

6 entries across 6 versions & 1 rubygems

Version Path
gir_ffi-0.13.0 lib/gir_ffi/info_ext/i_callback_info.rb
gir_ffi-0.12.1 lib/gir_ffi/info_ext/i_callback_info.rb
gir_ffi-0.12.0 lib/gir_ffi/info_ext/i_callback_info.rb
gir_ffi-0.11.4 lib/gir_ffi/info_ext/i_callback_info.rb
gir_ffi-0.11.3 lib/gir_ffi/info_ext/i_callback_info.rb
gir_ffi-0.11.2 lib/gir_ffi/info_ext/i_callback_info.rb