Sha256: 283eaa65b26242df323756408c6b3e756324263ecec29272b551c35c2c091190

Contents?: true

Size: 403 Bytes

Versions: 3

Compression:

Stored size: 403 Bytes

Contents

# frozen_string_literal: true
require 'ffi/bit_masks'

# NOTE: Monkey-patch BitMask to work on JRuby.
FFI::BitMasks::BitMask.class_eval do
  def reference_required?
    false
  end
end

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_init, [], :void
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gir_ffi-0.9.5 lib/gir_ffi-base/gobject/lib.rb
gir_ffi-0.9.4 lib/gir_ffi-base/gobject/lib.rb
gir_ffi-0.9.3 lib/gir_ffi-base/gobject/lib.rb