Module: GirFFI::InfoExt::IVFuncInfo

Defined in:
lib/gir_ffi/info_ext/i_vfunc_info.rb

Overview

Extensions for GObjectIntrospection::IVFuncInfo needed by GirFFI TODO: Merge implementation with ICallbackInfo and ISignalInfo extensions.

Instance Method Summary collapse

Instance Method Details

#argument_ffi_typesObject



7
8
9
10
11
# File 'lib/gir_ffi/info_ext/i_vfunc_info.rb', line 7

def argument_ffi_types
  args.map(&:to_callback_ffi_type).tap do |types|
    types << :pointer if throws?
  end
end

#has_invoker?Boolean

Returns:



21
22
23
# File 'lib/gir_ffi/info_ext/i_vfunc_info.rb', line 21

def has_invoker?
  invoker
end

#invoker_nameObject



17
18
19
# File 'lib/gir_ffi/info_ext/i_vfunc_info.rb', line 17

def invoker_name
  invoker && invoker.name
end

#return_ffi_typeObject



13
14
15
# File 'lib/gir_ffi/info_ext/i_vfunc_info.rb', line 13

def return_ffi_type
  return_type.to_callback_ffi_type
end