Module: GirFFI::InfoExt::IFunctionInfo

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

Overview

Extensions for GObjectIntrospection::IFunctionInfo needed by GirFFI

Instance Method Summary collapse

Instance Method Details

#argument_ffi_typesObject



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

def argument_ffi_types
  super.tap do |types|
    types.unshift :pointer if method?
    types << :pointer if throws?
  end
end

#return_ffi_typeObject



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

def return_ffi_type
  return_type.to_ffi_type
end