Sha256: 520f48c7fc3c79cb7203aa118c4dcb1c8357faa24b78c05428b3d81f307f7731

Contents?: true

Size: 611 Bytes

Versions: 4

Compression:

Stored size: 611 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_error_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

4 entries across 4 versions & 1 rubygems

Version Path
gir_ffi-0.15.3 lib/gir_ffi-base/gobject/lib.rb
gir_ffi-0.15.2 lib/gir_ffi-base/gobject/lib.rb
gir_ffi-0.15.1 lib/gir_ffi-base/gobject/lib.rb
gir_ffi-0.15.0 lib/gir_ffi-base/gobject/lib.rb