Sha256: ce696227f0eb030c30ed96a5d2bd27d3a3841ae83556fea46793ca1145e522c8

Contents?: true

Size: 560 Bytes

Versions: 3

Compression:

Stored size: 560 Bytes

Contents

# frozen_string_literal: true

require 'ffi/bit_masks'

module GObject
  # Module for attaching functions from the gobject library
  module Lib
    extend FFI::Library
    extend FFI::BitMasks
    ffi_lib 'gobject-2.0'
    attach_function :g_type_from_name, [:string], :size_t
    attach_function :g_type_fundamental, [:size_t], :size_t
    attach_function :g_array_get_type, [], :size_t
    attach_function :g_byte_array_get_type, [], :size_t
    attach_function :g_hash_table_get_type, [], :size_t
    attach_function :g_strv_get_type, [], :size_t
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gir_ffi-0.14.1 lib/gir_ffi-base/gobject/lib.rb
gir_ffi-0.14.0 lib/gir_ffi-base/gobject/lib.rb
gir_ffi-0.13.1 lib/gir_ffi-base/gobject/lib.rb