gobject-introspection 3.4.9 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2019 Ruby-GNOME Project Team
1
+ # Copyright (C) 2019-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,171 +17,163 @@
17
17
  module GObjectIntrospection
18
18
  class TypeTag
19
19
  def try_convert(type_info, value)
20
- nil
20
+ method = "try_convert_#{nick}"
21
+ if respond_to?(method, true)
22
+ __send__(method, type_info, value)
23
+ else
24
+ nil
25
+ end
21
26
  end
22
27
 
23
28
  def description(type_info)
24
- nick
29
+ method = "description_#{nick}"
30
+ if respond_to?(method, true)
31
+ __send__(method, type_info)
32
+ else
33
+ nick
34
+ end
25
35
  end
26
36
 
27
- class << BOOLEAN
28
- def try_convert(type_info, value)
29
- case value
30
- when true, false
31
- value
32
- when nil
33
- false
34
- else
35
- nil
36
- end
37
+ private
38
+ def try_convert_boolean(type_info, value)
39
+ case value
40
+ when true, false
41
+ value
42
+ when nil
43
+ false
44
+ else
45
+ nil
37
46
  end
38
47
  end
39
48
 
40
- module IntegerTypeTag
41
- def try_convert(type_info, value)
42
- if value.is_a?(Integer)
43
- value
44
- elsif value.respond_to?(:to_int)
45
- value.to_int
46
- else
47
- nil
48
- end
49
+ def try_convert_integer(type_info, value)
50
+ if value.is_a?(Integer)
51
+ value
52
+ elsif value.respond_to?(:to_int)
53
+ value.to_int
54
+ else
55
+ nil
49
56
  end
50
57
  end
51
58
 
52
- INT8.extend(IntegerTypeTag)
53
- UINT8.extend(IntegerTypeTag)
54
- INT16.extend(IntegerTypeTag)
55
- UINT16.extend(IntegerTypeTag)
56
- INT32.extend(IntegerTypeTag)
57
- UINT32.extend(IntegerTypeTag)
58
- INT64.extend(IntegerTypeTag)
59
- UINT64.extend(IntegerTypeTag)
60
-
61
- module FloatTypeTag
62
- def try_convert(type_info, value)
63
- if value.is_a?(Float)
64
- value
65
- elsif value.respond_to?(:to_f) # TODO: Should we stop this?
66
- value.to_f
67
- else
68
- nil
69
- end
59
+ alias_method :try_convert_int8, :try_convert_integer
60
+ alias_method :try_convert_uint8, :try_convert_integer
61
+ alias_method :try_convert_int16, :try_convert_integer
62
+ alias_method :try_convert_uint16, :try_convert_integer
63
+ alias_method :try_convert_int32, :try_convert_integer
64
+ alias_method :try_convert_uint32, :try_convert_integer
65
+ alias_method :try_convert_int64, :try_convert_integer
66
+ alias_method :try_convert_uint64, :try_convert_integer
67
+
68
+ def try_convert_float(type_info, value)
69
+ if value.is_a?(Float)
70
+ value
71
+ elsif value.respond_to?(:to_f) # TODO: Should we stop this?
72
+ value.to_f
73
+ else
74
+ nil
70
75
  end
71
76
  end
72
77
 
73
- FLOAT.extend(FloatTypeTag)
74
- DOUBLE.extend(FloatTypeTag)
78
+ alias_method :try_convert_double, :try_convert_float
75
79
 
76
- class << GTYPE
77
- def try_convert(type_info, value)
78
- GLib::Type.try_convert(value)
79
- end
80
+ def try_convert_gtype(type_info, value)
81
+ GLib::Type.try_convert(value)
80
82
  end
81
83
 
82
- class << UTF8
83
- def try_convert(type_info, value)
84
- case value
85
- when String
86
- value.encode(Encoding::UTF_8)
87
- when Symbol
88
- value.to_s.encode(Encoding::UTF_8)
84
+ def try_convert_utf8(type_info, value)
85
+ case value
86
+ when String
87
+ value.encode(Encoding::UTF_8)
88
+ when Symbol
89
+ value.to_s.encode(Encoding::UTF_8)
90
+ else
91
+ if value.respond_to?(:to_str)
92
+ value.to_str.encode(Encoding::UTF_8)
89
93
  else
90
- if value.respond_to?(:to_str)
91
- value.to_str.encode(Encoding::UTF_8)
92
- else
93
- nil
94
- end
94
+ nil
95
95
  end
96
96
  end
97
97
  end
98
98
 
99
- class << FILENAME
100
- def try_convert(type_info, value)
101
- case value
102
- when String
103
- value.encode(GLib::FILENAME_ENCODING)
99
+ def try_convert_filename(type_info, value)
100
+ case value
101
+ when String
102
+ value.encode(GLib::FILENAME_ENCODING)
103
+ else
104
+ if value.respond_to?(:to_path)
105
+ value.to_path.encode(GLib::FILENAME_ENCODING)
106
+ elsif value.respond_to?(:to_str)
107
+ value.to_str.encode(GLib::FILENAME_ENCODING)
104
108
  else
105
- if value.respond_to?(:to_path)
106
- value.to_path.encode(GLib::FILENAME_ENCODING)
107
- elsif value.respond_to?(:to_str)
108
- value.to_str.encode(GLib::FILENAME_ENCODING)
109
- else
110
- nil
111
- end
109
+ nil
112
110
  end
113
111
  end
114
112
  end
115
113
 
116
- module ArrayTypeTag
117
- def try_convert(type_info, value)
118
- value = Array.try_convert(value)
119
- return nil if value.nil?
120
- element_type_info = get_element_type_info(type_info)
121
- value.collect do |v|
122
- unless v.nil?
123
- v = element_type_info.try_convert(v)
124
- return nil if v.nil?
125
- end
126
- v
114
+ def try_convert_array_like(type_info, value)
115
+ value = Array.try_convert(value)
116
+ return nil if value.nil?
117
+ element_type_info = get_element_type_info(type_info)
118
+ value.collect do |v|
119
+ unless v.nil?
120
+ v = element_type_info.try_convert(v)
121
+ return nil if v.nil?
127
122
  end
123
+ v
128
124
  end
125
+ end
129
126
 
130
- def description(type_info)
131
- element_type_info = type_info.get_param_type(0)
132
- "#{super}(#{element_type_info.description})"
133
- end
134
-
135
- def get_element_type_info(type_info)
136
- type_info.get_param_type(0)
137
- end
127
+ def description_array_like(type_info)
128
+ element_type_info = type_info.get_param_type(0)
129
+ "#{nick}(#{element_type_info.description})"
138
130
  end
139
131
 
140
- class << ARRAY
141
- include ArrayTypeTag
132
+ def get_element_type_info(type_info)
133
+ type_info.get_param_type(0)
134
+ end
142
135
 
143
- def try_convert(type_info, value)
144
- case get_element_type_info(type_info).tag
145
- when INT8, UINT8
146
- case value
147
- when String
148
- return value
149
- when GLib::Bytes
150
- return value.to_s
151
- end
136
+ def try_convert_array(type_info, value)
137
+ case get_element_type_info(type_info).tag
138
+ when INT8, UINT8
139
+ case value
140
+ when String
141
+ return value
142
+ when GLib::Bytes
143
+ return value.to_s
152
144
  end
153
- super
154
145
  end
146
+ try_convert_array_like(type_info, value)
155
147
  end
156
148
 
157
- GLIST.extend(ArrayTypeTag)
158
- GSLIST.extend(ArrayTypeTag)
149
+ alias_method :description_array, :description_array_like
159
150
 
160
- class << GHASH
161
- def try_convert(type_info, value)
162
- case value
163
- when Hash
164
- value
165
- else
166
- nil
167
- end
168
- end
151
+ alias_method :try_convert_glist, :try_convert_array_like
152
+ alias_method :description_glist, :description_array_like
153
+ alias_method :try_convert_gslist, :try_convert_array_like
154
+ alias_method :description_gslist, :description_array_like
169
155
 
170
- def description(type_info)
171
- key_type = type_info.get_param_type(0)
172
- value_type = type_info.get_param_type(1)
173
- "#{super}(#{key_type.description}->#{value_type.description})"
156
+ def try_convert_ghash(type_info, value)
157
+ case value
158
+ when Hash
159
+ value
160
+ else
161
+ nil
174
162
  end
175
163
  end
176
164
 
177
- class << INTERFACE
178
- def try_convert(type_info, value)
179
- type_info.interface.try_convert(value)
180
- end
165
+ def description_ghash(type_info)
166
+ key_type = type_info.get_param_type(0)
167
+ value_type = type_info.get_param_type(1)
168
+ "#{nick}(#{key_type.description}->#{value_type.description})"
169
+ end
181
170
 
182
- def description(type_info)
183
- "#{super}(#{type_info.interface.description})"
184
- end
171
+ def try_convert_interface(type_info, value)
172
+ type_info.interface.try_convert(value)
173
+ end
174
+
175
+ def description_interface(type_info)
176
+ "#{nick}(#{type_info.interface.description})"
185
177
  end
186
178
  end
187
179
  end
data/test/test-loader.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2012-2021 Ruby-GNOME Project Team
1
+ # Copyright (C) 2012-2022 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
@@ -72,5 +72,33 @@ class TestLoaderInfo < Test::Unit::TestCase
72
72
  resettable_converter.resetted
73
73
  end
74
74
  end
75
+
76
+ def test_ancestor
77
+ immutable_menu_class = Class.new(Gio::Menu) do
78
+ type_register("ImmutableMenu")
79
+
80
+ def virtual_do_is_mutable
81
+ false
82
+ end
83
+ end
84
+ immutable_menu = immutable_menu_class.new
85
+ assert do
86
+ not immutable_menu.mutable?
87
+ end
88
+ end
89
+ end
90
+
91
+ sub_test_case("#==") do
92
+ def test_invalid
93
+ assert do
94
+ not (Gio::File.new_for_path("nonexistent") == "invalid")
95
+ end
96
+ end
97
+
98
+ def test_nil
99
+ assert do
100
+ not (Gio::File.new_for_path("nonexistent") == nil)
101
+ end
102
+ end
75
103
  end
76
104
  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.9
4
+ version: 4.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Ruby-GNOME Project Team
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-10 00:00:00.000000000 Z
11
+ date: 2022-09-01 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.9
19
+ version: 4.0.0
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.9
26
+ version: 4.0.0
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,11 +38,8 @@ 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
- - ext/gobject-introspection/rb-gi-argument.c
46
43
  - ext/gobject-introspection/rb-gi-arguments-in.c
47
44
  - ext/gobject-introspection/rb-gi-arguments-out.c
48
45
  - ext/gobject-introspection/rb-gi-arguments.c
@@ -88,7 +85,6 @@ files:
88
85
  - ext/gobject-introspection/rb-gi-vfunc-info.c
89
86
  - ext/gobject-introspection/rb-gobject-introspection.c
90
87
  - ext/gobject-introspection/rb-gobject-introspection.h
91
- - ext/gobject-introspection/rbgiversion.h
92
88
  - extconf.rb
93
89
  - gobject-introspection.gemspec
94
90
  - lib/gi.rb
@@ -139,7 +135,7 @@ licenses:
139
135
  - LGPL-2.1+
140
136
  metadata:
141
137
  msys2_mingw_dependencies: gobject-introspection
142
- post_install_message:
138
+ post_install_message:
143
139
  rdoc_options: []
144
140
  require_paths:
145
141
  - lib
@@ -154,8 +150,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
150
  - !ruby/object:Gem::Version
155
151
  version: '0'
156
152
  requirements: []
157
- rubygems_version: 3.3.0.dev
158
- signing_key:
153
+ rubygems_version: 3.4.0.dev
154
+ signing_key:
159
155
  specification_version: 4
160
156
  summary: Ruby/GObjectIntrospection is a Ruby binding of GObject Introspection.
161
157
  test_files: []
@@ -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
-
@@ -1,42 +0,0 @@
1
-
2
- /* Generated by glib-mkenums.rb ($Id$) */
3
-
4
- #ifndef __GOBJECT_INTROSPECTION_ENUM_TYPES_H__
5
- #define __GOBJECT_INTROSPECTION_ENUM_TYPES_H__
6
-
7
- #include <glib-object.h>
8
-
9
- G_BEGIN_DECLS
10
-
11
- /* enumerations from "/usr/include/gobject-introspection-1.0/girepository.h" */
12
- GType g_i_repository_load_flags_get_type (void);
13
- #define G_TYPE_I_REPOSITORY_LOAD_FLAGS (g_i_repository_load_flags_get_type())
14
- GType g_i_repository_error_get_type (void);
15
- #define G_TYPE_I_REPOSITORY_ERROR (g_i_repository_error_get_type())
16
-
17
- /* enumerations from "/usr/include/gobject-introspection-1.0/gitypes.h" */
18
- GType g_i_info_type_get_type (void);
19
- #define G_TYPE_I_INFO_TYPE (g_i_info_type_get_type())
20
- GType g_i_transfer_get_type (void);
21
- #define G_TYPE_I_TRANSFER (g_i_transfer_get_type())
22
- GType g_i_direction_get_type (void);
23
- #define G_TYPE_I_DIRECTION (g_i_direction_get_type())
24
- GType g_i_scope_type_get_type (void);
25
- #define G_TYPE_I_SCOPE_TYPE (g_i_scope_type_get_type())
26
- GType g_i_type_tag_get_type (void);
27
- #define G_TYPE_I_TYPE_TAG (g_i_type_tag_get_type())
28
- GType g_i_array_type_get_type (void);
29
- #define G_TYPE_I_ARRAY_TYPE (g_i_array_type_get_type())
30
- GType g_i_field_info_flags_get_type (void);
31
- #define G_TYPE_I_FIELD_INFO_FLAGS (g_i_field_info_flags_get_type())
32
- GType g_iv_func_info_flags_get_type (void);
33
- #define G_TYPE_IV_FUNC_INFO_FLAGS (g_iv_func_info_flags_get_type())
34
- GType g_i_function_info_flags_get_type (void);
35
- #define G_TYPE_I_FUNCTION_INFO_FLAGS (g_i_function_info_flags_get_type())
36
-
37
- G_END_DECLS
38
-
39
- #endif /* __GOBJECT_INTROSPECTION_ENUM_TYPES_H__ */
40
-
41
- /* Generated data ends here */
42
-