Sha256: 54b61968db7cceff079d3ea37a60b29007401fde91729243d2c83c9c6e6cfd7e

Contents?: true

Size: 400 Bytes

Versions: 13

Compression:

Stored size: 400 Bytes

Contents

# frozen_string_literal: true

require "ffi"

module GObjectIntrospection
  # Provides access to the g_type_init function.
  module GObjectTypeInit
    def self.type_init
      Lib.g_type_init
    end

    # Module for attaching g_type_init from the gobject library.
    module Lib
      extend FFI::Library
      ffi_lib "gobject-2.0"
      attach_function :g_type_init, [], :void
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
gir_ffi-0.17.0 lib/ffi-gobject_introspection/gobject_type_init.rb
gir_ffi-0.16.1 lib/ffi-gobject_introspection/gobject_type_init.rb
gir_ffi-0.16.0 lib/ffi-gobject_introspection/gobject_type_init.rb
gir_ffi-0.15.9 lib/ffi-gobject_introspection/gobject_type_init.rb
gir_ffi-0.15.8 lib/ffi-gobject_introspection/gobject_type_init.rb
gir_ffi-0.15.7 lib/ffi-gobject_introspection/gobject_type_init.rb
gir_ffi-0.15.6 lib/ffi-gobject_introspection/gobject_type_init.rb
gir_ffi-0.15.5 lib/ffi-gobject_introspection/gobject_type_init.rb
gir_ffi-0.15.4 lib/ffi-gobject_introspection/gobject_type_init.rb
gir_ffi-0.15.3 lib/ffi-gobject_introspection/gobject_type_init.rb
gir_ffi-0.15.2 lib/ffi-gobject_introspection/gobject_type_init.rb
gir_ffi-0.15.1 lib/ffi-gobject_introspection/gobject_type_init.rb
gir_ffi-0.15.0 lib/ffi-gobject_introspection/gobject_type_init.rb