Sha256: 950c5435ca7c3ec15906c31acfb4dcc8289fcbc2df0e3855c48b1be672a45710

Contents?: true

Size: 347 Bytes

Versions: 6

Compression:

Stored size: 347 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
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gir_ffi-0.13.0 lib/gir_ffi-base/gobject/lib.rb
gir_ffi-0.12.1 lib/gir_ffi-base/gobject/lib.rb
gir_ffi-0.12.0 lib/gir_ffi-base/gobject/lib.rb
gir_ffi-0.11.4 lib/gir_ffi-base/gobject/lib.rb
gir_ffi-0.11.3 lib/gir_ffi-base/gobject/lib.rb
gir_ffi-0.11.2 lib/gir_ffi-base/gobject/lib.rb