Sha256: 4b454cbf71a9ba982325e709411e3cea749a51eec319ba0f70421f3db87ae2f2

Contents?: true

Size: 486 Bytes

Versions: 9

Compression:

Stored size: 486 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

9 entries across 9 versions & 1 rubygems

Version Path
gir_ffi-0.11.1 lib/gir_ffi/info_ext/i_callback_info.rb
gir_ffi-0.11.0 lib/gir_ffi/info_ext/i_callback_info.rb
gir_ffi-0.10.2 lib/gir_ffi/info_ext/i_callback_info.rb
gir_ffi-0.10.1 lib/gir_ffi/info_ext/i_callback_info.rb
gir_ffi-0.10.0 lib/gir_ffi/info_ext/i_callback_info.rb
gir_ffi-0.10.0.pre1 lib/gir_ffi/info_ext/i_callback_info.rb
gir_ffi-0.9.5 lib/gir_ffi/info_ext/i_callback_info.rb
gir_ffi-0.9.4 lib/gir_ffi/info_ext/i_callback_info.rb
gir_ffi-0.9.3 lib/gir_ffi/info_ext/i_callback_info.rb