Sha256: eab3fee69ae58af4ca0daa7470433ba3a33ff43e4f6c418e467ea65757631420

Contents?: true

Size: 580 Bytes

Versions: 2

Compression:

Stored size: 580 Bytes

Contents

module GirFFI
  module InfoExt
    # Extensions for GObjectIntrospection::ICallbackInfo needed by GirFFI
    module ICallbackInfo
      # @deprecated Use #to_ffi_type instead. Will be removed in 0.8.0.
      def to_ffitype
        to_ffi_type
      end

      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

2 entries across 2 versions & 1 rubygems

Version Path
gir_ffi-0.7.10 lib/gir_ffi/info_ext/i_callback_info.rb
gir_ffi-0.7.9 lib/gir_ffi/info_ext/i_callback_info.rb