Module: GirFFI::InfoExt::ICallbackInfo

Included in:
GObjectIntrospection::ICallbackInfo
Defined in:
lib/gir_ffi/info_ext/i_callback_info.rb

Overview

Extensions for GObjectIntrospection::ICallbackInfo needed by GirFFI

Instance Method Summary collapse

Instance Method Details

#argument_ffi_typesObject



15
16
17
# File 'lib/gir_ffi/info_ext/i_callback_info.rb', line 15

def argument_ffi_types
  args.map(&:to_callback_ffi_type)
end

#return_ffi_typeObject



19
20
21
# File 'lib/gir_ffi/info_ext/i_callback_info.rb', line 19

def return_ffi_type
  return_type.to_callback_ffi_type
end

#to_callback_ffi_typeObject



11
12
13
# File 'lib/gir_ffi/info_ext/i_callback_info.rb', line 11

def to_callback_ffi_type
  :pointer
end

#to_ffi_typeObject



7
8
9
# File 'lib/gir_ffi/info_ext/i_callback_info.rb', line 7

def to_ffi_type
  Builder.build_class(self)
end