gobject-introspection 3.4.0 → 3.4.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/gobject-introspection/extconf.rb +1 -4
- data/ext/gobject-introspection/rb-gi-argument.c +10 -3
- data/ext/gobject-introspection/rb-gi-arguments-in.c +82 -122
- data/ext/gobject-introspection/rb-gi-arguments-out.c +31 -11
- data/ext/gobject-introspection/rb-gi-arguments.c +217 -18
- data/ext/gobject-introspection/rb-gi-base-info.c +11 -1
- data/ext/gobject-introspection/rb-gi-callable-info.c +10 -2
- data/ext/gobject-introspection/rb-gi-callback.c +156 -2
- data/ext/gobject-introspection/rb-gi-conversions.h +6 -6
- data/ext/gobject-introspection/rb-gi-interface-info.c +1 -7
- data/ext/gobject-introspection/rb-gi-loader.c +58 -10
- data/ext/gobject-introspection/rb-gi-object-info.c +11 -1
- data/ext/gobject-introspection/rb-gi-private-arguments-in.h +3 -1
- data/ext/gobject-introspection/rb-gi-private-arguments.h +6 -2
- data/ext/gobject-introspection/rb-gi-private-callback.h +6 -3
- data/ext/gobject-introspection/rb-gi-private.h +1 -0
- data/ext/gobject-introspection/rb-gi-repository.c +1 -1
- data/ext/gobject-introspection/rb-gi-struct-info.c +15 -3
- data/ext/gobject-introspection/rb-gi-vfunc-info.c +2 -2
- data/ext/gobject-introspection/rb-gobject-introspection.c +231 -0
- data/lib/gobject-introspection/loader.rb +66 -2
- data/lib/gobject-introspection/type-tag.rb +2 -0
- data/test/gobject-introspection-test-utils.rb +2 -2
- data/test/run-test.rb +18 -25
- data/test/test-base-info.rb +5 -1
- data/test/test-callable-info.rb +16 -2
- data/test/test-loader.rb +53 -7
- data/test/test-object-info.rb +5 -1
- data/test/test-struct-info.rb +6 -1
- metadata +5 -8
- data/ext/gobject-introspection/gobject-introspection-enum-types.c +0 -230
- data/ext/gobject-introspection/gobject-introspection-enum-types.h +0 -42
- data/ext/gobject-introspection/rbgiversion.h +0 -24
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2012 Ruby-
|
1
|
+
# Copyright (C) 2012-2021 Ruby-GNOME Project Team
|
2
2
|
#
|
3
3
|
# This library is free software; you can redistribute it and/or
|
4
4
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -14,7 +14,7 @@
|
|
14
14
|
# License along with this library; if not, write to the Free Software
|
15
15
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
16
16
|
|
17
|
-
require "
|
17
|
+
require "gobject-introspection"
|
18
18
|
|
19
19
|
module GObjectIntrospectionTestUtils
|
20
20
|
def require_version(major, minor, micro)
|
data/test/run-test.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
#
|
3
|
-
# Copyright (C) 2012-
|
3
|
+
# Copyright (C) 2012-2021 Ruby-GNOME Project Team
|
4
4
|
#
|
5
5
|
# This library is free software; you can redistribute it and/or
|
6
6
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -16,31 +16,24 @@
|
|
16
16
|
# License along with this library; if not, write to the Free Software
|
17
17
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
18
18
|
|
19
|
-
|
20
|
-
ruby_gnome2_base = File.expand_path(ruby_gnome2_base)
|
19
|
+
require_relative "../../glib2/test/run-test"
|
21
20
|
|
22
|
-
|
23
|
-
|
21
|
+
run_test(__dir__,
|
22
|
+
[
|
23
|
+
"glib2",
|
24
|
+
"gobject-introspection",
|
25
|
+
]) do |context|
|
26
|
+
require_relative "gobject-introspection-test-utils"
|
24
27
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
`make -C #{target.dump} > /dev/null` or exit(false)
|
28
|
+
begin
|
29
|
+
repository = GObjectIntrospection::Repository.default
|
30
|
+
repository.require("Gio")
|
31
|
+
rescue GObjectIntrospection::RepositoryError
|
32
|
+
puts("Omit because typelib file doesn't exist: #{$!.message}")
|
33
|
+
exit(true)
|
32
34
|
end
|
33
|
-
$LOAD_PATH.unshift(File.join(target, "ext", module_name))
|
34
|
-
$LOAD_PATH.unshift(File.join(target, "lib"))
|
35
|
-
end
|
36
|
-
|
37
|
-
$LOAD_PATH.unshift(File.join(glib_base, "test"))
|
38
|
-
require "glib-test-init"
|
39
|
-
|
40
|
-
$LOAD_PATH.unshift(File.join(gobject_introspection_base, "test"))
|
41
|
-
require "gobject-introspection-test-utils"
|
42
35
|
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
36
|
+
module Gio
|
37
|
+
GObjectIntrospection::Loader.load("Gio", self)
|
38
|
+
end
|
39
|
+
end
|
data/test/test-base-info.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2012 Ruby-
|
1
|
+
# Copyright (C) 2012-2021 Ruby-GNOME Project Team
|
2
2
|
#
|
3
3
|
# This library is free software; you can redistribute it and/or
|
4
4
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -28,4 +28,8 @@ class TestBaseInfo < Test::Unit::TestCase
|
|
28
28
|
def test_namespace
|
29
29
|
assert_equal("GObject", @info.namespace)
|
30
30
|
end
|
31
|
+
|
32
|
+
def test_container
|
33
|
+
assert_equal("Object", @info.vfuncs.first.container.name)
|
34
|
+
end
|
31
35
|
end
|
data/test/test-callable-info.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2012 Ruby-
|
1
|
+
# Copyright (C) 2012-2021 Ruby-GNOME Project Team
|
2
2
|
#
|
3
3
|
# This library is free software; you can redistribute it and/or
|
4
4
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -21,6 +21,12 @@ class TestCallableInfo < Test::Unit::TestCase
|
|
21
21
|
@info = @repository.find("GObject", "signal_name")
|
22
22
|
end
|
23
23
|
|
24
|
+
def test_can_throw_gerror
|
25
|
+
assert do
|
26
|
+
not @info.can_throw_gerror?
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
24
30
|
def test_return_type
|
25
31
|
assert_kind_of(GObjectIntrospection::TypeInfo,
|
26
32
|
@info.return_type)
|
@@ -32,7 +38,15 @@ class TestCallableInfo < Test::Unit::TestCase
|
|
32
38
|
end
|
33
39
|
|
34
40
|
def test_may_return_null?
|
35
|
-
|
41
|
+
if GObjectIntrospection::Version.or_later?(1, 67, 0)
|
42
|
+
assert do
|
43
|
+
@info.may_return_null?
|
44
|
+
end
|
45
|
+
else
|
46
|
+
assert do
|
47
|
+
not @info.may_return_null?
|
48
|
+
end
|
49
|
+
end
|
36
50
|
end
|
37
51
|
|
38
52
|
def test_n_args
|
data/test/test-loader.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2012 Ruby-
|
1
|
+
# Copyright (C) 2012-2021 Ruby-GNOME Project Team
|
2
2
|
#
|
3
3
|
# This library is free software; you can redistribute it and/or
|
4
4
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -17,14 +17,60 @@
|
|
17
17
|
class TestLoaderInfo < Test::Unit::TestCase
|
18
18
|
def setup
|
19
19
|
@repository = GObjectIntrospection::Repository.default
|
20
|
-
@repository.require("Gio")
|
21
|
-
@info = @repository.find("Gio", "Application")
|
22
|
-
@sandbox = Module.new
|
23
20
|
end
|
24
21
|
|
25
22
|
def test_define_class
|
26
|
-
|
27
|
-
|
28
|
-
assert_equal(gtype,
|
23
|
+
info = @repository.find("Gio", "Application")
|
24
|
+
gtype = info.gtype
|
25
|
+
assert_equal(gtype, Gio::Application.gtype)
|
26
|
+
end
|
27
|
+
|
28
|
+
sub_test_case("virtual function") do
|
29
|
+
def test_without_prefix
|
30
|
+
active_vfs_class = Class.new(Gio::Vfs) do
|
31
|
+
type_register("ActiveVfsWithoutPrefix")
|
32
|
+
|
33
|
+
def virtual_do_is_active
|
34
|
+
true
|
35
|
+
end
|
36
|
+
end
|
37
|
+
active_vfs = active_vfs_class.new
|
38
|
+
assert do
|
39
|
+
active_vfs.active?
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
def test_with_prefix
|
44
|
+
active_vfs_class = Class.new(Gio::Vfs) do
|
45
|
+
type_register("ActiveVfsWithPrefix")
|
46
|
+
|
47
|
+
def virtual_do_gvfs_is_active
|
48
|
+
true
|
49
|
+
end
|
50
|
+
end
|
51
|
+
active_vfs = active_vfs_class.new
|
52
|
+
assert do
|
53
|
+
active_vfs.active?
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
def test_interface
|
58
|
+
resettable_converter_class = Class.new(GLib::Object) do
|
59
|
+
type_register("ResettableConverter")
|
60
|
+
|
61
|
+
include Gio::Converter
|
62
|
+
|
63
|
+
attr_reader :resetted
|
64
|
+
|
65
|
+
def virtual_do_reset
|
66
|
+
@resetted = true
|
67
|
+
end
|
68
|
+
end
|
69
|
+
resettable_converter = resettable_converter_class.new
|
70
|
+
resettable_converter.reset
|
71
|
+
assert do
|
72
|
+
resettable_converter.resetted
|
73
|
+
end
|
74
|
+
end
|
29
75
|
end
|
30
76
|
end
|
data/test/test-object-info.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2012 Ruby-
|
1
|
+
# Copyright (C) 2012-2021 Ruby-GNOME Project Team
|
2
2
|
#
|
3
3
|
# This library is free software; you can redistribute it and/or
|
4
4
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -113,6 +113,10 @@ class TestObjectInfo < Test::Unit::TestCase
|
|
113
113
|
assert_equal(0, @info.n_constants)
|
114
114
|
end
|
115
115
|
|
116
|
+
def test_class_struct
|
117
|
+
assert_equal("FileOutputStreamClass", @info.class_struct.name)
|
118
|
+
end
|
119
|
+
|
116
120
|
def test_unref_function
|
117
121
|
assert_nil(@info.unref_function)
|
118
122
|
end
|
data/test/test-struct-info.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2012-
|
1
|
+
# Copyright (C) 2012-2021 Ruby-GNOME Project Team
|
2
2
|
#
|
3
3
|
# This library is free software; you can redistribute it and/or
|
4
4
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -30,6 +30,11 @@ class TestStructInfo < Test::Unit::TestCase
|
|
30
30
|
@info.get_field(0))
|
31
31
|
end
|
32
32
|
|
33
|
+
def test_find_field
|
34
|
+
assert_equal("g_type",
|
35
|
+
@info.find_field("g_type").name)
|
36
|
+
end
|
37
|
+
|
33
38
|
def test_n_methods
|
34
39
|
assert_operator(@info.n_methods, :>=, 62)
|
35
40
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gobject-introspection
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.4.
|
4
|
+
version: 3.4.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Ruby-GNOME Project Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: glib2
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.4.
|
19
|
+
version: 3.4.5
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.4.
|
26
|
+
version: 3.4.5
|
27
27
|
description: Ruby/GObjectIntrospection provides bindings of GObject Introspection
|
28
28
|
and a loader module that can generate dynamically Ruby bindings of any GObject C
|
29
29
|
libraries
|
@@ -38,8 +38,6 @@ files:
|
|
38
38
|
- Rakefile
|
39
39
|
- ext/gobject-introspection/depend
|
40
40
|
- ext/gobject-introspection/extconf.rb
|
41
|
-
- ext/gobject-introspection/gobject-introspection-enum-types.c
|
42
|
-
- ext/gobject-introspection/gobject-introspection-enum-types.h
|
43
41
|
- ext/gobject-introspection/gobject_introspection.def
|
44
42
|
- ext/gobject-introspection/rb-gi-arg-info.c
|
45
43
|
- ext/gobject-introspection/rb-gi-argument.c
|
@@ -88,7 +86,6 @@ files:
|
|
88
86
|
- ext/gobject-introspection/rb-gi-vfunc-info.c
|
89
87
|
- ext/gobject-introspection/rb-gobject-introspection.c
|
90
88
|
- ext/gobject-introspection/rb-gobject-introspection.h
|
91
|
-
- ext/gobject-introspection/rbgiversion.h
|
92
89
|
- extconf.rb
|
93
90
|
- gobject-introspection.gemspec
|
94
91
|
- lib/gi.rb
|
@@ -154,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
154
151
|
- !ruby/object:Gem::Version
|
155
152
|
version: '0'
|
156
153
|
requirements: []
|
157
|
-
rubygems_version: 3.
|
154
|
+
rubygems_version: 3.3.0.dev
|
158
155
|
signing_key:
|
159
156
|
specification_version: 4
|
160
157
|
summary: Ruby/GObjectIntrospection is a Ruby binding of GObject Introspection.
|
@@ -1,230 +0,0 @@
|
|
1
|
-
|
2
|
-
/* Generated by glib-mkenums.rb ($Id$) */
|
3
|
-
|
4
|
-
#include "gobject-introspection-enum-types.h"
|
5
|
-
#include <girepository.h>
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
/* enumerations from "/usr/include/gobject-introspection-1.0/girepository.h" */
|
10
|
-
GType
|
11
|
-
g_i_repository_load_flags_get_type (void)
|
12
|
-
{
|
13
|
-
static GType etype = 0;
|
14
|
-
if (etype == 0) {
|
15
|
-
static const GFlagsValue values[] = {
|
16
|
-
{ G_IREPOSITORY_LOAD_FLAG_LAZY, "G_IREPOSITORY_LOAD_FLAG_LAZY", "g-irepository-load-flag-lazy" },
|
17
|
-
{ 0, NULL, NULL }
|
18
|
-
};
|
19
|
-
etype = g_flags_register_static ("GIRepositoryLoadFlags", values);
|
20
|
-
}
|
21
|
-
return etype;
|
22
|
-
}
|
23
|
-
|
24
|
-
GType
|
25
|
-
g_i_repository_error_get_type (void)
|
26
|
-
{
|
27
|
-
static GType etype = 0;
|
28
|
-
if (etype == 0) {
|
29
|
-
static const GEnumValue values[] = {
|
30
|
-
{ G_IREPOSITORY_ERROR_TYPELIB_NOT_FOUND, "G_IREPOSITORY_ERROR_TYPELIB_NOT_FOUND", "typelib-not-found" },
|
31
|
-
{ G_IREPOSITORY_ERROR_NAMESPACE_MISMATCH, "G_IREPOSITORY_ERROR_NAMESPACE_MISMATCH", "namespace-mismatch" },
|
32
|
-
{ G_IREPOSITORY_ERROR_NAMESPACE_VERSION_CONFLICT, "G_IREPOSITORY_ERROR_NAMESPACE_VERSION_CONFLICT", "namespace-version-conflict" },
|
33
|
-
{ G_IREPOSITORY_ERROR_LIBRARY_NOT_FOUND, "G_IREPOSITORY_ERROR_LIBRARY_NOT_FOUND", "library-not-found" },
|
34
|
-
{ 0, NULL, NULL }
|
35
|
-
};
|
36
|
-
etype = g_enum_register_static ("GIRepositoryError", values);
|
37
|
-
}
|
38
|
-
return etype;
|
39
|
-
}
|
40
|
-
|
41
|
-
|
42
|
-
/* enumerations from "/usr/include/gobject-introspection-1.0/gitypes.h" */
|
43
|
-
GType
|
44
|
-
g_i_info_type_get_type (void)
|
45
|
-
{
|
46
|
-
static GType etype = 0;
|
47
|
-
if (etype == 0) {
|
48
|
-
static const GEnumValue values[] = {
|
49
|
-
{ GI_INFO_TYPE_INVALID, "GI_INFO_TYPE_INVALID", "invalid" },
|
50
|
-
{ GI_INFO_TYPE_FUNCTION, "GI_INFO_TYPE_FUNCTION", "function" },
|
51
|
-
{ GI_INFO_TYPE_CALLBACK, "GI_INFO_TYPE_CALLBACK", "callback" },
|
52
|
-
{ GI_INFO_TYPE_STRUCT, "GI_INFO_TYPE_STRUCT", "struct" },
|
53
|
-
{ GI_INFO_TYPE_BOXED, "GI_INFO_TYPE_BOXED", "boxed" },
|
54
|
-
{ GI_INFO_TYPE_ENUM, "GI_INFO_TYPE_ENUM", "enum" },
|
55
|
-
{ GI_INFO_TYPE_FLAGS, "GI_INFO_TYPE_FLAGS", "flags" },
|
56
|
-
{ GI_INFO_TYPE_OBJECT, "GI_INFO_TYPE_OBJECT", "object" },
|
57
|
-
{ GI_INFO_TYPE_INTERFACE, "GI_INFO_TYPE_INTERFACE", "interface" },
|
58
|
-
{ GI_INFO_TYPE_CONSTANT, "GI_INFO_TYPE_CONSTANT", "constant" },
|
59
|
-
{ GI_INFO_TYPE_INVALID_0, "GI_INFO_TYPE_INVALID_0", "invalid-0" },
|
60
|
-
{ GI_INFO_TYPE_UNION, "GI_INFO_TYPE_UNION", "union" },
|
61
|
-
{ GI_INFO_TYPE_VALUE, "GI_INFO_TYPE_VALUE", "value" },
|
62
|
-
{ GI_INFO_TYPE_SIGNAL, "GI_INFO_TYPE_SIGNAL", "signal" },
|
63
|
-
{ GI_INFO_TYPE_VFUNC, "GI_INFO_TYPE_VFUNC", "vfunc" },
|
64
|
-
{ GI_INFO_TYPE_PROPERTY, "GI_INFO_TYPE_PROPERTY", "property" },
|
65
|
-
{ GI_INFO_TYPE_FIELD, "GI_INFO_TYPE_FIELD", "field" },
|
66
|
-
{ GI_INFO_TYPE_ARG, "GI_INFO_TYPE_ARG", "arg" },
|
67
|
-
{ GI_INFO_TYPE_TYPE, "GI_INFO_TYPE_TYPE", "type" },
|
68
|
-
{ GI_INFO_TYPE_UNRESOLVED, "GI_INFO_TYPE_UNRESOLVED", "unresolved" },
|
69
|
-
{ 0, NULL, NULL }
|
70
|
-
};
|
71
|
-
etype = g_enum_register_static ("GIInfoType", values);
|
72
|
-
}
|
73
|
-
return etype;
|
74
|
-
}
|
75
|
-
|
76
|
-
GType
|
77
|
-
g_i_transfer_get_type (void)
|
78
|
-
{
|
79
|
-
static GType etype = 0;
|
80
|
-
if (etype == 0) {
|
81
|
-
static const GEnumValue values[] = {
|
82
|
-
{ GI_TRANSFER_NOTHING, "GI_TRANSFER_NOTHING", "nothing" },
|
83
|
-
{ GI_TRANSFER_CONTAINER, "GI_TRANSFER_CONTAINER", "container" },
|
84
|
-
{ GI_TRANSFER_EVERYTHING, "GI_TRANSFER_EVERYTHING", "everything" },
|
85
|
-
{ 0, NULL, NULL }
|
86
|
-
};
|
87
|
-
etype = g_enum_register_static ("GITransfer", values);
|
88
|
-
}
|
89
|
-
return etype;
|
90
|
-
}
|
91
|
-
|
92
|
-
GType
|
93
|
-
g_i_direction_get_type (void)
|
94
|
-
{
|
95
|
-
static GType etype = 0;
|
96
|
-
if (etype == 0) {
|
97
|
-
static const GEnumValue values[] = {
|
98
|
-
{ GI_DIRECTION_IN, "GI_DIRECTION_IN", "in" },
|
99
|
-
{ GI_DIRECTION_OUT, "GI_DIRECTION_OUT", "out" },
|
100
|
-
{ GI_DIRECTION_INOUT, "GI_DIRECTION_INOUT", "inout" },
|
101
|
-
{ 0, NULL, NULL }
|
102
|
-
};
|
103
|
-
etype = g_enum_register_static ("GIDirection", values);
|
104
|
-
}
|
105
|
-
return etype;
|
106
|
-
}
|
107
|
-
|
108
|
-
GType
|
109
|
-
g_i_scope_type_get_type (void)
|
110
|
-
{
|
111
|
-
static GType etype = 0;
|
112
|
-
if (etype == 0) {
|
113
|
-
static const GEnumValue values[] = {
|
114
|
-
{ GI_SCOPE_TYPE_INVALID, "GI_SCOPE_TYPE_INVALID", "invalid" },
|
115
|
-
{ GI_SCOPE_TYPE_CALL, "GI_SCOPE_TYPE_CALL", "call" },
|
116
|
-
{ GI_SCOPE_TYPE_ASYNC, "GI_SCOPE_TYPE_ASYNC", "async" },
|
117
|
-
{ GI_SCOPE_TYPE_NOTIFIED, "GI_SCOPE_TYPE_NOTIFIED", "notified" },
|
118
|
-
{ 0, NULL, NULL }
|
119
|
-
};
|
120
|
-
etype = g_enum_register_static ("GIScopeType", values);
|
121
|
-
}
|
122
|
-
return etype;
|
123
|
-
}
|
124
|
-
|
125
|
-
GType
|
126
|
-
g_i_type_tag_get_type (void)
|
127
|
-
{
|
128
|
-
static GType etype = 0;
|
129
|
-
if (etype == 0) {
|
130
|
-
static const GEnumValue values[] = {
|
131
|
-
{ GI_TYPE_TAG_VOID, "GI_TYPE_TAG_VOID", "void" },
|
132
|
-
{ GI_TYPE_TAG_BOOLEAN, "GI_TYPE_TAG_BOOLEAN", "boolean" },
|
133
|
-
{ GI_TYPE_TAG_INT8, "GI_TYPE_TAG_INT8", "int8" },
|
134
|
-
{ GI_TYPE_TAG_UINT8, "GI_TYPE_TAG_UINT8", "uint8" },
|
135
|
-
{ GI_TYPE_TAG_INT16, "GI_TYPE_TAG_INT16", "int16" },
|
136
|
-
{ GI_TYPE_TAG_UINT16, "GI_TYPE_TAG_UINT16", "uint16" },
|
137
|
-
{ GI_TYPE_TAG_INT32, "GI_TYPE_TAG_INT32", "int32" },
|
138
|
-
{ GI_TYPE_TAG_UINT32, "GI_TYPE_TAG_UINT32", "uint32" },
|
139
|
-
{ GI_TYPE_TAG_INT64, "GI_TYPE_TAG_INT64", "int64" },
|
140
|
-
{ GI_TYPE_TAG_UINT64, "GI_TYPE_TAG_UINT64", "uint64" },
|
141
|
-
{ GI_TYPE_TAG_FLOAT, "GI_TYPE_TAG_FLOAT", "float" },
|
142
|
-
{ GI_TYPE_TAG_DOUBLE, "GI_TYPE_TAG_DOUBLE", "double" },
|
143
|
-
{ GI_TYPE_TAG_GTYPE, "GI_TYPE_TAG_GTYPE", "gtype" },
|
144
|
-
{ GI_TYPE_TAG_UTF8, "GI_TYPE_TAG_UTF8", "utf8" },
|
145
|
-
{ GI_TYPE_TAG_FILENAME, "GI_TYPE_TAG_FILENAME", "filename" },
|
146
|
-
{ GI_TYPE_TAG_ARRAY, "GI_TYPE_TAG_ARRAY", "array" },
|
147
|
-
{ GI_TYPE_TAG_INTERFACE, "GI_TYPE_TAG_INTERFACE", "interface" },
|
148
|
-
{ GI_TYPE_TAG_GLIST, "GI_TYPE_TAG_GLIST", "glist" },
|
149
|
-
{ GI_TYPE_TAG_GSLIST, "GI_TYPE_TAG_GSLIST", "gslist" },
|
150
|
-
{ GI_TYPE_TAG_GHASH, "GI_TYPE_TAG_GHASH", "ghash" },
|
151
|
-
{ GI_TYPE_TAG_ERROR, "GI_TYPE_TAG_ERROR", "error" },
|
152
|
-
{ GI_TYPE_TAG_UNICHAR, "GI_TYPE_TAG_UNICHAR", "unichar" },
|
153
|
-
{ 0, NULL, NULL }
|
154
|
-
};
|
155
|
-
etype = g_enum_register_static ("GITypeTag", values);
|
156
|
-
}
|
157
|
-
return etype;
|
158
|
-
}
|
159
|
-
|
160
|
-
GType
|
161
|
-
g_i_array_type_get_type (void)
|
162
|
-
{
|
163
|
-
static GType etype = 0;
|
164
|
-
if (etype == 0) {
|
165
|
-
static const GEnumValue values[] = {
|
166
|
-
{ GI_ARRAY_TYPE_C, "GI_ARRAY_TYPE_C", "c" },
|
167
|
-
{ GI_ARRAY_TYPE_ARRAY, "GI_ARRAY_TYPE_ARRAY", "array" },
|
168
|
-
{ GI_ARRAY_TYPE_PTR_ARRAY, "GI_ARRAY_TYPE_PTR_ARRAY", "ptr-array" },
|
169
|
-
{ GI_ARRAY_TYPE_BYTE_ARRAY, "GI_ARRAY_TYPE_BYTE_ARRAY", "byte-array" },
|
170
|
-
{ 0, NULL, NULL }
|
171
|
-
};
|
172
|
-
etype = g_enum_register_static ("GIArrayType", values);
|
173
|
-
}
|
174
|
-
return etype;
|
175
|
-
}
|
176
|
-
|
177
|
-
GType
|
178
|
-
g_i_field_info_flags_get_type (void)
|
179
|
-
{
|
180
|
-
static GType etype = 0;
|
181
|
-
if (etype == 0) {
|
182
|
-
static const GFlagsValue values[] = {
|
183
|
-
{ GI_FIELD_IS_READABLE, "GI_FIELD_IS_READABLE", "readable" },
|
184
|
-
{ GI_FIELD_IS_WRITABLE, "GI_FIELD_IS_WRITABLE", "writable" },
|
185
|
-
{ 0, NULL, NULL }
|
186
|
-
};
|
187
|
-
etype = g_flags_register_static ("GIFieldInfoFlags", values);
|
188
|
-
}
|
189
|
-
return etype;
|
190
|
-
}
|
191
|
-
|
192
|
-
GType
|
193
|
-
g_iv_func_info_flags_get_type (void)
|
194
|
-
{
|
195
|
-
static GType etype = 0;
|
196
|
-
if (etype == 0) {
|
197
|
-
static const GFlagsValue values[] = {
|
198
|
-
{ GI_VFUNC_MUST_CHAIN_UP, "GI_VFUNC_MUST_CHAIN_UP", "must-chain-up" },
|
199
|
-
{ GI_VFUNC_MUST_OVERRIDE, "GI_VFUNC_MUST_OVERRIDE", "must-override" },
|
200
|
-
{ GI_VFUNC_MUST_NOT_OVERRIDE, "GI_VFUNC_MUST_NOT_OVERRIDE", "must-not-override" },
|
201
|
-
{ GI_VFUNC_THROWS, "GI_VFUNC_THROWS", "throws" },
|
202
|
-
{ 0, NULL, NULL }
|
203
|
-
};
|
204
|
-
etype = g_flags_register_static ("GIVFuncInfoFlags", values);
|
205
|
-
}
|
206
|
-
return etype;
|
207
|
-
}
|
208
|
-
|
209
|
-
GType
|
210
|
-
g_i_function_info_flags_get_type (void)
|
211
|
-
{
|
212
|
-
static GType etype = 0;
|
213
|
-
if (etype == 0) {
|
214
|
-
static const GFlagsValue values[] = {
|
215
|
-
{ GI_FUNCTION_IS_METHOD, "GI_FUNCTION_IS_METHOD", "is-method" },
|
216
|
-
{ GI_FUNCTION_IS_CONSTRUCTOR, "GI_FUNCTION_IS_CONSTRUCTOR", "is-constructor" },
|
217
|
-
{ GI_FUNCTION_IS_GETTER, "GI_FUNCTION_IS_GETTER", "is-getter" },
|
218
|
-
{ GI_FUNCTION_IS_SETTER, "GI_FUNCTION_IS_SETTER", "is-setter" },
|
219
|
-
{ GI_FUNCTION_WRAPS_VFUNC, "GI_FUNCTION_WRAPS_VFUNC", "wraps-vfunc" },
|
220
|
-
{ GI_FUNCTION_THROWS, "GI_FUNCTION_THROWS", "throws" },
|
221
|
-
{ 0, NULL, NULL }
|
222
|
-
};
|
223
|
-
etype = g_flags_register_static ("GIFunctionInfoFlags", values);
|
224
|
-
}
|
225
|
-
return etype;
|
226
|
-
}
|
227
|
-
|
228
|
-
|
229
|
-
/* Generated data ends here */
|
230
|
-
|