gobject-introspection 2.2.3-x86-mingw32 → 2.2.4-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +19 -11
- data/ext/gobject-introspection/extconf.rb +1 -1
- data/ext/gobject-introspection/rb-gi-argument.c +119 -3
- data/ext/gobject-introspection/rb-gi-function-info.c +4 -0
- data/ext/gobject-introspection/rb-gi-repository.c +82 -0
- data/lib/2.0/gobject_introspection.so +0 -0
- data/lib/2.1/gobject_introspection.so +0 -0
- data/lib/2.2/gobject_introspection.so +0 -0
- data/lib/gobject-introspection/loader.rb +11 -2
- data/vendor/local/bin/g-ir-compiler.exe +0 -0
- data/vendor/local/bin/g-ir-generate.exe +0 -0
- data/vendor/local/bin/libgirepository-1.0-1.dll +0 -0
- data/vendor/local/lib/girepository-1.0/GLib-2.0.typelib +0 -0
- data/vendor/local/lib/girepository-1.0/Gio-2.0.typelib +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/__init__.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/__init__.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/annotationmain.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/annotationmain.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/annotationparser.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/annotationparser.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/ast.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/ast.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/cachestore.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/cachestore.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/ccompiler.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/ccompiler.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/codegen.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/codegen.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/collections/__init__.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/collections/__init__.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/collections/counter.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/collections/counter.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/collections/ordereddict.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/collections/ordereddict.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/docmain.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/docmain.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/docwriter.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/dumper.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/dumper.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/gdumpparser.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/gdumpparser.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/girparser.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/girparser.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/girwriter.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/introspectablepass.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/introspectablepass.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/libtoolimporter.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/libtoolimporter.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/maintransformer.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/maintransformer.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/message.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/message.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/scannermain.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/scannermain.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/sectionparser.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/sectionparser.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/shlibs.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/shlibs.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/sourcescanner.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/sourcescanner.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/testcodegen.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/testcodegen.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/transformer.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/transformer.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/utils.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/utils.pyo +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.pyc +0 -0
- data/vendor/local/lib/gobject-introspection/giscanner/xmlwriter.pyo +0 -0
- data/vendor/local/lib/libgirepository-1.0.a +0 -0
- data/vendor/local/lib/libgirepository-1.0.dll.a +0 -0
- data/vendor/local/lib/libgirepository-1.0.la +2 -2
- data/vendor/local/lib/pkgconfig/gobject-introspection-1.0.pc +2 -4
- data/vendor/local/lib/pkgconfig/gobject-introspection-no-export-1.0.pc +1 -1
- data/vendor/local/lib/pkgconfig/patched +0 -0
- data/vendor/local/share/gir-1.0/GLib-2.0.gir +1 -1
- data/vendor/local/share/gir-1.0/Gio-2.0.gir +8 -8
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e17393716b80047d695287a2c3b1fe99fec0b80
|
4
|
+
data.tar.gz: 90221a7ed2be8a750ccc8ab3555260412e1b7447
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4adc91adec64641200c8bd5450a1f4fc4edfbc44de0c7c3b26675ad0abc67f67076a6de403cbb10e22b64f60289c03adb7021e2d23d0e131c6d3c0c0458eb1f0
|
7
|
+
data.tar.gz: ab67e946f6c90f8fce65a9d7ac3608fe6339190014494b366d992cfa719ab30c8fc6373b5b11fb6834632ee85e2ddfd79669aa731606eaecfdacde4767196681
|
data/Rakefile
CHANGED
@@ -32,7 +32,7 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
|
|
32
32
|
:name => "glib",
|
33
33
|
:download_site => :gnome,
|
34
34
|
:label => "GLib",
|
35
|
-
:version => "2.42.
|
35
|
+
:version => "2.42.1",
|
36
36
|
:compression_method => "xz",
|
37
37
|
:windows => {
|
38
38
|
:build => false,
|
@@ -74,16 +74,20 @@ package_task.define
|
|
74
74
|
|
75
75
|
namespace :native do
|
76
76
|
namespace :"gobject-introspection" do
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
77
|
+
g_ir_scanner_dir = package_task.native.absolute_binary_dir
|
78
|
+
g_ir_scanner_dir += "lib/gobject-introspection/giscanner"
|
79
|
+
patched_path = g_ir_scanner_dir + "patched"
|
80
|
+
file patched_path.to_s do
|
81
81
|
Dir.chdir(g_ir_scanner_dir.to_s) do
|
82
82
|
patch = "#{package_task.package.patches_dir}/cross-g-ir-scanner.diff"
|
83
83
|
sh("patch -p2 < #{patch}")
|
84
84
|
rm_f(Dir.glob("*.{pyc,pyo}"))
|
85
85
|
end
|
86
|
+
touch(patched_path)
|
86
87
|
end
|
88
|
+
|
89
|
+
desc "Make g-ir-scanner workable for Windows on non Windows"
|
90
|
+
task :cross => patched_path
|
87
91
|
end
|
88
92
|
|
89
93
|
namespace :builder do
|
@@ -91,12 +95,12 @@ namespace :native do
|
|
91
95
|
end
|
92
96
|
end
|
93
97
|
|
94
|
-
namespace :
|
98
|
+
namespace :windows do
|
95
99
|
namespace :"gobject-introspection" do
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
+
pkg_config_dir = package_task.windows.absolute_binary_dir + "lib/pkgconfig"
|
101
|
+
pc_path = pkg_config_dir + "gobject-introspection-1.0.pc"
|
102
|
+
patched_path = pkg_config_dir + "patched"
|
103
|
+
file patched_path.to_s do
|
100
104
|
original_pc = pc_path.read
|
101
105
|
new_pc = ""
|
102
106
|
new_pc << "native_prefix=#{package_task.native.absolute_binary_dir}\n"
|
@@ -112,10 +116,14 @@ namespace :win32 do
|
|
112
116
|
pc_path.open("w") do |pc_file|
|
113
117
|
pc_file.write(new_pc)
|
114
118
|
end
|
119
|
+
touch(patched_path)
|
115
120
|
end
|
121
|
+
|
122
|
+
desc "Use native tools"
|
123
|
+
task :cross => patched_path.to_s
|
116
124
|
end
|
117
125
|
|
118
126
|
namespace :builder do
|
119
|
-
task :after => "
|
127
|
+
task :after => "windows:gobject-introspection:cross"
|
120
128
|
end
|
121
129
|
end
|
@@ -274,6 +274,65 @@ interface_to_ruby(GIArgument *argument, GITypeInfo *type_info)
|
|
274
274
|
return rb_interface;
|
275
275
|
}
|
276
276
|
|
277
|
+
static VALUE
|
278
|
+
rb_gi_argument_to_ruby_glist(GIArgument *argument, GITypeInfo *type_info)
|
279
|
+
{
|
280
|
+
VALUE rb_argument;
|
281
|
+
GITypeInfo *element_type_info;
|
282
|
+
GITypeTag element_type_tag;
|
283
|
+
|
284
|
+
element_type_info = g_type_info_get_param_type(type_info, 0);
|
285
|
+
element_type_tag = g_type_info_get_tag(element_type_info);
|
286
|
+
g_base_info_unref(element_type_info);
|
287
|
+
|
288
|
+
switch (element_type_tag) {
|
289
|
+
case GI_TYPE_TAG_VOID:
|
290
|
+
case GI_TYPE_TAG_BOOLEAN:
|
291
|
+
case GI_TYPE_TAG_INT8:
|
292
|
+
case GI_TYPE_TAG_UINT8:
|
293
|
+
case GI_TYPE_TAG_INT16:
|
294
|
+
case GI_TYPE_TAG_UINT16:
|
295
|
+
case GI_TYPE_TAG_INT32:
|
296
|
+
case GI_TYPE_TAG_UINT32:
|
297
|
+
case GI_TYPE_TAG_INT64:
|
298
|
+
case GI_TYPE_TAG_UINT64:
|
299
|
+
case GI_TYPE_TAG_FLOAT:
|
300
|
+
case GI_TYPE_TAG_DOUBLE:
|
301
|
+
case GI_TYPE_TAG_GTYPE:
|
302
|
+
rb_raise(rb_eNotImpError,
|
303
|
+
"TODO: GIArgument(GList)[%s] -> Ruby",
|
304
|
+
g_type_tag_to_string(element_type_tag));
|
305
|
+
break;
|
306
|
+
case GI_TYPE_TAG_UTF8:
|
307
|
+
rb_argument = CSTRGLIST2RVAL(argument->v_pointer);
|
308
|
+
break;
|
309
|
+
case GI_TYPE_TAG_FILENAME:
|
310
|
+
case GI_TYPE_TAG_ARRAY:
|
311
|
+
rb_raise(rb_eNotImpError,
|
312
|
+
"TODO: GIArgument(GList)[%s] -> Ruby",
|
313
|
+
g_type_tag_to_string(element_type_tag));
|
314
|
+
break;
|
315
|
+
case GI_TYPE_TAG_INTERFACE:
|
316
|
+
GOBJGLIST2RVAL(argument->v_pointer);
|
317
|
+
break;
|
318
|
+
case GI_TYPE_TAG_GLIST:
|
319
|
+
case GI_TYPE_TAG_GSLIST:
|
320
|
+
case GI_TYPE_TAG_GHASH:
|
321
|
+
case GI_TYPE_TAG_ERROR:
|
322
|
+
case GI_TYPE_TAG_UNICHAR:
|
323
|
+
rb_raise(rb_eNotImpError,
|
324
|
+
"TODO: GIArgument(GList)[%s] -> Ruby",
|
325
|
+
g_type_tag_to_string(element_type_tag));
|
326
|
+
break;
|
327
|
+
default:
|
328
|
+
g_assert_not_reached();
|
329
|
+
break;
|
330
|
+
}
|
331
|
+
|
332
|
+
return rb_argument;
|
333
|
+
}
|
334
|
+
|
335
|
+
|
277
336
|
VALUE
|
278
337
|
rb_gi_argument_to_ruby(GIArgument *argument, GITypeInfo *type_info)
|
279
338
|
{
|
@@ -340,7 +399,7 @@ rb_gi_argument_to_ruby(GIArgument *argument, GITypeInfo *type_info)
|
|
340
399
|
rb_argument = interface_to_ruby(argument, type_info);
|
341
400
|
break;
|
342
401
|
case GI_TYPE_TAG_GLIST:
|
343
|
-
rb_argument =
|
402
|
+
rb_argument = rb_gi_argument_to_ruby_glist(argument, type_info);
|
344
403
|
break;
|
345
404
|
case GI_TYPE_TAG_GSLIST:
|
346
405
|
case GI_TYPE_TAG_GHASH:
|
@@ -843,6 +902,64 @@ rb_gi_return_argument_free_everything_interface(GIArgument *argument,
|
|
843
902
|
}
|
844
903
|
}
|
845
904
|
|
905
|
+
static void
|
906
|
+
rb_gi_return_argument_free_everything_glist(GIArgument *argument,
|
907
|
+
GITypeInfo *type_info)
|
908
|
+
{
|
909
|
+
GITypeInfo *element_type_info;
|
910
|
+
GITypeTag element_type_tag;
|
911
|
+
|
912
|
+
element_type_info = g_type_info_get_param_type(type_info, 0);
|
913
|
+
element_type_tag = g_type_info_get_tag(element_type_info);
|
914
|
+
g_base_info_unref(element_type_info);
|
915
|
+
|
916
|
+
switch (element_type_tag) {
|
917
|
+
case GI_TYPE_TAG_VOID:
|
918
|
+
case GI_TYPE_TAG_BOOLEAN:
|
919
|
+
case GI_TYPE_TAG_INT8:
|
920
|
+
case GI_TYPE_TAG_UINT8:
|
921
|
+
case GI_TYPE_TAG_INT16:
|
922
|
+
case GI_TYPE_TAG_UINT16:
|
923
|
+
case GI_TYPE_TAG_INT32:
|
924
|
+
case GI_TYPE_TAG_UINT32:
|
925
|
+
case GI_TYPE_TAG_INT64:
|
926
|
+
case GI_TYPE_TAG_UINT64:
|
927
|
+
case GI_TYPE_TAG_FLOAT:
|
928
|
+
case GI_TYPE_TAG_DOUBLE:
|
929
|
+
case GI_TYPE_TAG_GTYPE:
|
930
|
+
rb_raise(rb_eNotImpError,
|
931
|
+
"TODO: free GIArgument(GList)[%s] everything",
|
932
|
+
g_type_tag_to_string(element_type_tag));
|
933
|
+
break;
|
934
|
+
case GI_TYPE_TAG_UTF8:
|
935
|
+
g_list_foreach(argument->v_pointer, (GFunc)g_free, NULL);
|
936
|
+
g_list_free(argument->v_pointer);
|
937
|
+
break;
|
938
|
+
case GI_TYPE_TAG_FILENAME:
|
939
|
+
case GI_TYPE_TAG_ARRAY:
|
940
|
+
rb_raise(rb_eNotImpError,
|
941
|
+
"TODO: free GIArgument(GList)[%s] everything",
|
942
|
+
g_type_tag_to_string(element_type_tag));
|
943
|
+
break;
|
944
|
+
case GI_TYPE_TAG_INTERFACE:
|
945
|
+
g_list_foreach(argument->v_pointer, (GFunc)g_object_unref, NULL);
|
946
|
+
g_list_free(argument->v_pointer);
|
947
|
+
break;
|
948
|
+
case GI_TYPE_TAG_GLIST:
|
949
|
+
case GI_TYPE_TAG_GSLIST:
|
950
|
+
case GI_TYPE_TAG_GHASH:
|
951
|
+
case GI_TYPE_TAG_ERROR:
|
952
|
+
case GI_TYPE_TAG_UNICHAR:
|
953
|
+
rb_raise(rb_eNotImpError,
|
954
|
+
"TODO: free GIArgument(GList)[%s] everything",
|
955
|
+
g_type_tag_to_string(element_type_tag));
|
956
|
+
break;
|
957
|
+
default:
|
958
|
+
g_assert_not_reached();
|
959
|
+
break;
|
960
|
+
}
|
961
|
+
}
|
962
|
+
|
846
963
|
static void
|
847
964
|
rb_gi_return_argument_free_everything(GIArgument *argument,
|
848
965
|
GITypeInfo *type_info)
|
@@ -883,8 +1000,7 @@ rb_gi_return_argument_free_everything(GIArgument *argument,
|
|
883
1000
|
rb_gi_return_argument_free_everything_interface(argument, type_info);
|
884
1001
|
break;
|
885
1002
|
case GI_TYPE_TAG_GLIST:
|
886
|
-
|
887
|
-
g_list_free(argument->v_pointer);
|
1003
|
+
rb_gi_return_argument_free_everything_glist(argument, type_info);
|
888
1004
|
break;
|
889
1005
|
case GI_TYPE_TAG_GSLIST:
|
890
1006
|
case GI_TYPE_TAG_GHASH:
|
@@ -18,17 +18,43 @@
|
|
18
18
|
* MA 02110-1301 USA
|
19
19
|
*/
|
20
20
|
|
21
|
+
|
22
|
+
/* GObjectIntrospection::Repository is used to manage repositories of
|
23
|
+
* namespaces. Namespaces are represented on disk by type libraries
|
24
|
+
* (.typelib files).
|
25
|
+
*/
|
26
|
+
|
21
27
|
#include "rb-gi-private.h"
|
22
28
|
|
23
29
|
#define RG_TARGET_NAMESPACE rb_cGIRepository
|
24
30
|
#define SELF(self) RVAL2GI_REPOSITORY(self)
|
25
31
|
|
32
|
+
|
33
|
+
/* Returns the singleton process-global default
|
34
|
+
* GObjectIntrospection::Repository. It is not currently supported to have
|
35
|
+
* multiple repositories in a particular process, but this function is provided
|
36
|
+
* in the unlikely eventuality that it would become possible, and as a
|
37
|
+
* convenience for higher level language bindings to conform to the GObject
|
38
|
+
* method call conventions.
|
39
|
+
*
|
40
|
+
* @return [GObjectIntrospection::Repository] The global singleton
|
41
|
+
* GObjectIntrospection::Repository.
|
42
|
+
*/
|
26
43
|
static VALUE
|
27
44
|
rg_s_default(G_GNUC_UNUSED VALUE klass)
|
28
45
|
{
|
29
46
|
return GOBJ2RVAL(g_irepository_get_default());
|
30
47
|
}
|
31
48
|
|
49
|
+
|
50
|
+
/* Force the namespace to be loaded if it isn't already. If namespace is not
|
51
|
+
* loaded, this function will search for a ".typelib" file using the repository
|
52
|
+
* search path. In addition, a version of namespace may be specified. If version
|
53
|
+
* is not specified, the latest will be used.
|
54
|
+
*
|
55
|
+
* @param [String] namespace The namespace to load
|
56
|
+
* @param [String, nil] version An optional version
|
57
|
+
*/
|
32
58
|
static VALUE
|
33
59
|
rg_require(int argc, VALUE *argv, VALUE self)
|
34
60
|
{
|
@@ -53,6 +79,16 @@ rg_require(int argc, VALUE *argv, VALUE self)
|
|
53
79
|
return Qnil;
|
54
80
|
}
|
55
81
|
|
82
|
+
|
83
|
+
/* Return an array of all (transitive) versioned dependencies for namespace.
|
84
|
+
* Returned strings are of the form "namespace-version".
|
85
|
+
* Note: namespace must have already been loaded using a function such as
|
86
|
+
* GObjectIntrospection::Repository.require() before calling this method.
|
87
|
+
*
|
88
|
+
* @param [String] namespace The namespace to get the dependencies for.
|
89
|
+
*
|
90
|
+
* @return [Array<String>] The dependencies.
|
91
|
+
*/
|
56
92
|
static VALUE
|
57
93
|
rg_get_dependencies(VALUE self, VALUE rb_namespace)
|
58
94
|
{
|
@@ -74,6 +110,11 @@ rg_get_dependencies(VALUE self, VALUE rb_namespace)
|
|
74
110
|
return rb_dependencies;
|
75
111
|
}
|
76
112
|
|
113
|
+
|
114
|
+
/* Return the list of currently loaded namespaces.
|
115
|
+
*
|
116
|
+
* @return [Array<String>] The loaded namespaces.
|
117
|
+
*/
|
77
118
|
static VALUE
|
78
119
|
rg_loaded_namespaces(VALUE self)
|
79
120
|
{
|
@@ -93,6 +134,14 @@ rg_loaded_namespaces(VALUE self)
|
|
93
134
|
return rb_namespaces;
|
94
135
|
}
|
95
136
|
|
137
|
+
|
138
|
+
/* This method returns the number of metadata entries in given namespace. The
|
139
|
+
* namespace must have already been loaded before calling this function.
|
140
|
+
*
|
141
|
+
* @param [String] namespace The namespace to fetch the entries from.
|
142
|
+
*
|
143
|
+
* @return [Integer] The number of metadata entries.
|
144
|
+
*/
|
96
145
|
static VALUE
|
97
146
|
rg_get_n_infos(VALUE self, VALUE rb_namespace)
|
98
147
|
{
|
@@ -105,6 +154,17 @@ rg_get_n_infos(VALUE self, VALUE rb_namespace)
|
|
105
154
|
return INT2NUM(n_infos);
|
106
155
|
}
|
107
156
|
|
157
|
+
|
158
|
+
/* This method returns a particular metadata entry in the given namespace. The
|
159
|
+
* namespace must have already been loaded before calling this function. See
|
160
|
+
* GObjectIntrospection::Repository#get_n_infos() to find the maximum number
|
161
|
+
* of entries.
|
162
|
+
*
|
163
|
+
* @param [String] namespace The namespace to fetch the metadata entry from.
|
164
|
+
* @param [Fixnum] index The index of the entry.
|
165
|
+
*
|
166
|
+
* @return [GObjectIntrospection::BaseInfo] The metadata entry.
|
167
|
+
*/
|
108
168
|
static VALUE
|
109
169
|
rg_get_info(VALUE self, VALUE rb_namespace, VALUE rb_n)
|
110
170
|
{
|
@@ -120,6 +180,28 @@ rg_get_info(VALUE self, VALUE rb_namespace, VALUE rb_n)
|
|
120
180
|
return GI_BASE_INFO2RVAL_WITH_UNREF(info);
|
121
181
|
}
|
122
182
|
|
183
|
+
|
184
|
+
/* This method searches for a particular type or name. If only one argument is
|
185
|
+
* given, it is interpreted as a gtype and all loaded namespaces are searched
|
186
|
+
* for it. If two arguments are given the first is a particular namespace and
|
187
|
+
* the second the name of an entry to search for.
|
188
|
+
*
|
189
|
+
* @overload find(type)
|
190
|
+
*
|
191
|
+
* @param [String] type The type to search for.
|
192
|
+
*
|
193
|
+
* @return [GObjectIntrospection::BaseInfo] The metadata entry.
|
194
|
+
*
|
195
|
+
*
|
196
|
+
* @overload find(namespace, type)
|
197
|
+
*
|
198
|
+
* @param [String] namespace The namespace to search in.
|
199
|
+
*
|
200
|
+
* @param [String] type The type to search for.
|
201
|
+
*
|
202
|
+
* @return [GObjectIntrospection::BaseInfo] The metadata entry.
|
203
|
+
*/
|
204
|
+
|
123
205
|
static VALUE
|
124
206
|
rg_find(int argc, VALUE *argv, VALUE self)
|
125
207
|
{
|
Binary file
|
Binary file
|
Binary file
|
@@ -349,13 +349,22 @@ module GObjectIntrospection
|
|
349
349
|
end
|
350
350
|
end
|
351
351
|
|
352
|
-
def rubyish_method_name(function_info)
|
352
|
+
def rubyish_method_name(function_info, options={})
|
353
353
|
name = function_info.name
|
354
|
+
if options[:prefix]
|
355
|
+
name = name.gsub(/\A#{Regexp.escape(options[:prefix])}/, "")
|
356
|
+
end
|
354
357
|
return_type = function_info.return_type
|
355
358
|
if return_type.tag == GObjectIntrospection::TypeTag::BOOLEAN
|
356
359
|
case name
|
357
|
-
when /\A(?:is|get_is
|
360
|
+
when /\A(?:is|get_is)_/
|
358
361
|
"#{$POSTMATCH}?"
|
362
|
+
when /\Aget_/
|
363
|
+
if function_info.n_in_args.zero?
|
364
|
+
"#{$POSTMATCH}?"
|
365
|
+
else
|
366
|
+
name
|
367
|
+
end
|
359
368
|
when /\A(?:has|use)_/
|
360
369
|
"#{name}?"
|
361
370
|
else
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -17,7 +17,7 @@ old_library='libgirepository-1.0.a'
|
|
17
17
|
inherited_linker_flags=''
|
18
18
|
|
19
19
|
# Libraries that this one depends upon.
|
20
|
-
dependency_libs=' -R/home/
|
20
|
+
dependency_libs=' -R/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib -L/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib -L/home/vagrant/rcairo.win32/vendor/local/lib -L/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib -L/home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/../lib /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/libgio-2.0.la /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/libgmodule-2.0.la -ldnsapi -liphlpapi -lz /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/libgobject-2.0.la /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/../lib/libffi.la /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/libglib-2.0.la -lws2_32 -lole32 -lwinmm -lshlwapi /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/libintl.la /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/libiconv.la -lpthread /home/vagrant/ruby-gnome2.win32/glib2/vendor/local/lib/../lib/libffi.la'
|
21
21
|
|
22
22
|
# Names of additional weak libraries provided by this library
|
23
23
|
weak_library_names=''
|
@@ -38,4 +38,4 @@ dlopen=''
|
|
38
38
|
dlpreopen=''
|
39
39
|
|
40
40
|
# Directory that this library needs to be installed in:
|
41
|
-
libdir='/home/
|
41
|
+
libdir='/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local/lib'
|
@@ -1,8 +1,6 @@
|
|
1
|
-
native_prefix=/home/
|
1
|
+
native_prefix=/home/vagrant/ruby-gnome2.win32/gobject-introspection/tmp/native/local
|
2
2
|
native_bindir=${native_prefix}/bin
|
3
|
-
|
4
|
-
native_bindir=${native_prefix}/bin
|
5
|
-
prefix=/home/kou/work/ruby/ruby-gnome2.win32/gobject-introspection/vendor/local
|
3
|
+
prefix=/home/vagrant/ruby-gnome2.win32/gobject-introspection/vendor/local
|
6
4
|
exec_prefix=${prefix}
|
7
5
|
libdir=${exec_prefix}/lib
|
8
6
|
bindir=${exec_prefix}/bin
|
File without changes
|
@@ -12577,7 +12577,7 @@ linked against at application run time.</doc>
|
|
12577
12577
|
<doc xml:space="preserve">The maximum value which can be held in a #guint8.</doc>
|
12578
12578
|
<type name="guint8" c:type="guint8"/>
|
12579
12579
|
</constant>
|
12580
|
-
<constant name="MICRO_VERSION" value="
|
12580
|
+
<constant name="MICRO_VERSION" value="1" c:type="GLIB_MICRO_VERSION">
|
12581
12581
|
<doc xml:space="preserve">The micro version number of the GLib library.
|
12582
12582
|
|
12583
12583
|
Like #gtk_micro_version, but from the headers used at
|
@@ -10048,24 +10048,24 @@ returned string may change in future GLib release.</doc>
|
|
10048
10048
|
glib:nick="freebsd-cmsgcred">
|
10049
10049
|
<doc xml:space="preserve">The native credentials type is a <type>struct cmsgcred</type>.</doc>
|
10050
10050
|
</member>
|
10051
|
-
<member name="netbsd_unpcbid"
|
10052
|
-
value="3"
|
10053
|
-
c:identifier="G_CREDENTIALS_TYPE_NETBSD_UNPCBID"
|
10054
|
-
glib:nick="netbsd-unpcbid">
|
10055
|
-
<doc xml:space="preserve">The native credentials type is a <type>struct unpcbid</type>.</doc>
|
10056
|
-
</member>
|
10057
10051
|
<member name="openbsd_sockpeercred"
|
10058
|
-
value="
|
10052
|
+
value="3"
|
10059
10053
|
c:identifier="G_CREDENTIALS_TYPE_OPENBSD_SOCKPEERCRED"
|
10060
10054
|
glib:nick="openbsd-sockpeercred">
|
10061
10055
|
<doc xml:space="preserve">The native credentials type is a <type>struct sockpeercred</type>. Added in 2.30.</doc>
|
10062
10056
|
</member>
|
10063
10057
|
<member name="solaris_ucred"
|
10064
|
-
value="
|
10058
|
+
value="4"
|
10065
10059
|
c:identifier="G_CREDENTIALS_TYPE_SOLARIS_UCRED"
|
10066
10060
|
glib:nick="solaris-ucred">
|
10067
10061
|
<doc xml:space="preserve">The native credentials type is a <type>ucred_t</type>. Added in 2.40.</doc>
|
10068
10062
|
</member>
|
10063
|
+
<member name="netbsd_unpcbid"
|
10064
|
+
value="5"
|
10065
|
+
c:identifier="G_CREDENTIALS_TYPE_NETBSD_UNPCBID"
|
10066
|
+
glib:nick="netbsd-unpcbid">
|
10067
|
+
<doc xml:space="preserve">The native credentials type is a <type>struct unpcbid</type>.</doc>
|
10068
|
+
</member>
|
10069
10069
|
</enumeration>
|
10070
10070
|
<class name="DBusActionGroup"
|
10071
10071
|
c:symbol-prefix="dbus_action_group"
|
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: 2.2.
|
4
|
+
version: 2.2.4
|
5
5
|
platform: x86-mingw32
|
6
6
|
authors:
|
7
7
|
- The Ruby-GNOME2 Project Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-23 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: 2.2.
|
19
|
+
version: 2.2.4
|
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: 2.2.
|
26
|
+
version: 2.2.4
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: test-unit
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -83,6 +83,7 @@ files:
|
|
83
83
|
- extconf.rb
|
84
84
|
- lib/2.0/gobject_introspection.so
|
85
85
|
- lib/2.1/gobject_introspection.so
|
86
|
+
- lib/2.2/gobject_introspection.so
|
86
87
|
- lib/gobject-introspection.rb
|
87
88
|
- lib/gobject-introspection/boxed-info.rb
|
88
89
|
- lib/gobject-introspection/callable-info.rb
|
@@ -293,6 +294,7 @@ files:
|
|
293
294
|
- vendor/local/lib/libgirepository-1.0.la
|
294
295
|
- vendor/local/lib/pkgconfig/gobject-introspection-1.0.pc
|
295
296
|
- vendor/local/lib/pkgconfig/gobject-introspection-no-export-1.0.pc
|
297
|
+
- vendor/local/lib/pkgconfig/patched
|
296
298
|
- vendor/local/share/aclocal/introspection.m4
|
297
299
|
- vendor/local/share/gir-1.0/DBus-1.0.gir
|
298
300
|
- vendor/local/share/gir-1.0/DBusGLib-1.0.gir
|