module GirFFI::TypeMap

Constants

TAG_TYPE_MAP

Public Class Methods

map_basic_type(type) click to toggle source
# File lib/gir_ffi/type_map.rb, line 24
def self.map_basic_type type
  TAG_TYPE_MAP[type] || type
end
map_basic_type_or_string(type) click to toggle source

FIXME: Make name more descriptive.

# File lib/gir_ffi/type_map.rb, line 29
def self.map_basic_type_or_string type
  case type
  when :gboolean
    :int32
  when :utf8
    :pointer
  else
    map_basic_type(type)
  end
end