module GirFFI::InfoExt::IVFuncInfo

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

Public Instance Methods

argument_ffi_types() click to toggle source
# File lib/gir_ffi/info_ext/i_vfunc_info.rb, line 6
def argument_ffi_types
  args.map(&:to_callback_ffi_type).tap do |types|
    types << :pointer if throws?
  end
end
return_ffi_type() click to toggle source
# File lib/gir_ffi/info_ext/i_vfunc_info.rb, line 12
def return_ffi_type
  return_type.to_callback_ffi_type
end