Sha256: 1dccd936d6fb4fb201b27dee498b31728fce59ff22f4c59f300da813f98743f4

Contents?: true

Size: 464 Bytes

Versions: 2

Compression:

Stored size: 464 Bytes

Contents

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

      def argument_ffi_types
        args.map { |arg| arg.to_callback_ffitype }
      end

      def return_ffi_type
        return_type.to_callback_ffitype
      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.6 lib/gir_ffi/info_ext/i_callback_info.rb
gir_ffi-0.7.5 lib/gir_ffi/info_ext/i_callback_info.rb