Module: GirFFI::InfoExt::IFunctionInfo

Included in:
GObjectIntrospection::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



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

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

#full_nameObject



18
19
20
21
22
23
24
25
26
# File 'lib/gir_ffi/info_ext/i_function_info.rb', line 18

def full_name
  if method?
    "#{container.full_name}##{safe_name}"
  elsif container
    "#{container.full_name}.#{safe_name}"
  else
    "#{safe_namespace}.#{safe_name}"
  end
end

#return_ffi_typeObject



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

def return_ffi_type
  return_type.to_ffi_type
end