Sha256: 4942676758a92734a0ae220a9c42ca04f9f5148308a3fc3f5c9be1096dbdacf5

Contents?: true

Size: 355 Bytes

Versions: 17

Compression:

Stored size: 355 Bytes

Contents

module GObjectIntrospection
  # Wraps GLib's GError struct.
  class GError
    # GLib's GError struct.
    class Struct < FFI::Struct
      layout :domain, :uint32,
        :code, :int,
        :message, :string
    end

    def initialize ptr
      @struct = self.class::Struct.new(ptr)
    end

    def message
      @struct[:message]
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
gir_ffi-0.7.8 lib/ffi-gobject_introspection/g_error.rb
gir_ffi-0.7.7 lib/ffi-gobject_introspection/g_error.rb
gir_ffi-0.7.6 lib/ffi-gobject_introspection/g_error.rb
gir_ffi-0.7.5 lib/ffi-gobject_introspection/g_error.rb
gir_ffi-0.7.4 lib/ffi-gobject_introspection/g_error.rb
gir_ffi-0.7.3 lib/ffi-gobject_introspection/g_error.rb
gir_ffi-0.7.2 lib/ffi-gobject_introspection/g_error.rb
gir_ffi-0.7.1 lib/ffi-gobject_introspection/g_error.rb
gir_ffi-0.7.0 lib/ffi-gobject_introspection/g_error.rb
gir_ffi-0.6.7 lib/ffi-gobject_introspection/g_error.rb
gir_ffi-0.6.6 lib/ffi-gobject_introspection/g_error.rb
gir_ffi-0.6.5 lib/ffi-gobject_introspection/g_error.rb
gir_ffi-0.6.4 lib/ffi-gobject_introspection/g_error.rb
gir_ffi-0.6.3 lib/ffi-gobject_introspection/g_error.rb
gir_ffi-0.6.2 lib/ffi-gobject_introspection/g_error.rb
gir_ffi-0.6.1 lib/ffi-gobject_introspection/g_error.rb
gir_ffi-0.6.0 lib/ffi-gobject_introspection/g_error.rb