gir_ffi 0.9.2 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog.md +7 -0
- data/Gemfile +2 -1
- data/README.md +6 -0
- data/TODO.md +1 -0
- data/examples/clutter.rb +106 -0
- data/examples/main_loop.rb +0 -8
- data/lib/ffi-glib/array.rb +1 -0
- data/lib/ffi-glib/array_methods.rb +1 -0
- data/lib/ffi-glib/byte_array.rb +1 -0
- data/lib/ffi-glib/bytes.rb +1 -0
- data/lib/ffi-glib/container_class_methods.rb +1 -0
- data/lib/ffi-glib/destroy_notify.rb +1 -0
- data/lib/ffi-glib/error.rb +1 -0
- data/lib/ffi-glib/hash_table.rb +2 -1
- data/lib/ffi-glib/iconv.rb +1 -0
- data/lib/ffi-glib/list.rb +1 -0
- data/lib/ffi-glib/list_methods.rb +1 -0
- data/lib/ffi-glib/main_loop.rb +1 -0
- data/lib/ffi-glib/ptr_array.rb +1 -0
- data/lib/ffi-glib/s_list.rb +1 -0
- data/lib/ffi-glib/strv.rb +1 -0
- data/lib/ffi-glib/variant.rb +1 -0
- data/lib/ffi-glib.rb +1 -0
- data/lib/ffi-gobject/base.rb +1 -0
- data/lib/ffi-gobject/closure.rb +1 -0
- data/lib/ffi-gobject/initially_unowned.rb +1 -0
- data/lib/ffi-gobject/object.rb +1 -0
- data/lib/ffi-gobject/object_class.rb +1 -0
- data/lib/ffi-gobject/ruby_closure.rb +1 -0
- data/lib/ffi-gobject/value.rb +1 -0
- data/lib/ffi-gobject.rb +1 -0
- data/lib/ffi-gobject_introspection/g_error.rb +1 -0
- data/lib/ffi-gobject_introspection/i_arg_info.rb +1 -0
- data/lib/ffi-gobject_introspection/i_base_info.rb +1 -0
- data/lib/ffi-gobject_introspection/i_callable_info.rb +5 -0
- data/lib/ffi-gobject_introspection/i_callback_info.rb +1 -0
- data/lib/ffi-gobject_introspection/i_constant_info.rb +1 -0
- data/lib/ffi-gobject_introspection/i_enum_info.rb +1 -0
- data/lib/ffi-gobject_introspection/i_field_info.rb +3 -2
- data/lib/ffi-gobject_introspection/i_flags_info.rb +1 -0
- data/lib/ffi-gobject_introspection/i_function_info.rb +7 -7
- data/lib/ffi-gobject_introspection/i_interface_info.rb +1 -0
- data/lib/ffi-gobject_introspection/i_object_info.rb +1 -0
- data/lib/ffi-gobject_introspection/i_property_info.rb +5 -4
- data/lib/ffi-gobject_introspection/i_registered_type_info.rb +1 -0
- data/lib/ffi-gobject_introspection/i_repository.rb +1 -0
- data/lib/ffi-gobject_introspection/i_signal_info.rb +1 -0
- data/lib/ffi-gobject_introspection/i_struct_info.rb +1 -0
- data/lib/ffi-gobject_introspection/i_type_info.rb +1 -0
- data/lib/ffi-gobject_introspection/i_union_info.rb +1 -0
- data/lib/ffi-gobject_introspection/i_unresolved_info.rb +1 -0
- data/lib/ffi-gobject_introspection/i_value_info.rb +1 -0
- data/lib/ffi-gobject_introspection/i_vfunc_info.rb +1 -0
- data/lib/ffi-gobject_introspection/lib.rb +27 -10
- data/lib/ffi-gobject_introspection.rb +1 -0
- data/lib/gir_ffi/allocation_helper.rb +1 -0
- data/lib/gir_ffi/arg_helper.rb +1 -0
- data/lib/gir_ffi/boxed_base.rb +1 -0
- data/lib/gir_ffi/builder.rb +1 -0
- data/lib/gir_ffi/builder_helper.rb +1 -0
- data/lib/gir_ffi/builders/argument_builder.rb +18 -6
- data/lib/gir_ffi/builders/argument_builder_collection.rb +24 -12
- data/lib/gir_ffi/builders/base_argument_builder.rb +1 -0
- data/lib/gir_ffi/builders/base_method_builder.rb +33 -9
- data/lib/gir_ffi/builders/base_type_builder.rb +1 -0
- data/lib/gir_ffi/builders/boxed_builder.rb +1 -0
- data/lib/gir_ffi/builders/c_to_ruby_convertor.rb +1 -0
- data/lib/gir_ffi/builders/callback_argument_builder.rb +5 -0
- data/lib/gir_ffi/builders/callback_builder.rb +2 -5
- data/lib/gir_ffi/builders/callback_return_value_builder.rb +1 -0
- data/lib/gir_ffi/builders/closure_argument_builder.rb +1 -0
- data/lib/gir_ffi/builders/closure_convertor.rb +1 -0
- data/lib/gir_ffi/builders/closure_return_value_builder.rb +1 -0
- data/lib/gir_ffi/builders/closure_to_pointer_convertor.rb +1 -0
- data/lib/gir_ffi/builders/constant_builder.rb +1 -0
- data/lib/gir_ffi/builders/constructor_builder.rb +2 -0
- data/lib/gir_ffi/builders/enum_builder.rb +2 -1
- data/lib/gir_ffi/builders/field_builder.rb +2 -0
- data/lib/gir_ffi/builders/flags_builder.rb +2 -1
- data/lib/gir_ffi/builders/full_c_to_ruby_convertor.rb +1 -0
- data/lib/gir_ffi/builders/function_builder.rb +2 -3
- data/lib/gir_ffi/builders/initializer_builder.rb +2 -3
- data/lib/gir_ffi/builders/initializer_return_value_builder.rb +1 -0
- data/lib/gir_ffi/builders/interface_builder.rb +1 -0
- data/lib/gir_ffi/builders/mapping_method_builder.rb +15 -37
- data/lib/gir_ffi/builders/marshalling_method_builder.rb +9 -26
- data/lib/gir_ffi/builders/method_template.rb +4 -3
- data/lib/gir_ffi/builders/module_builder.rb +2 -1
- data/lib/gir_ffi/builders/null_argument_builder.rb +1 -0
- data/lib/gir_ffi/builders/null_class_builder.rb +1 -0
- data/lib/gir_ffi/builders/null_convertor.rb +1 -0
- data/lib/gir_ffi/builders/null_return_value_builder.rb +1 -0
- data/lib/gir_ffi/builders/object_builder.rb +1 -0
- data/lib/gir_ffi/builders/property_builder.rb +1 -0
- data/lib/gir_ffi/builders/registered_type_builder.rb +1 -0
- data/lib/gir_ffi/builders/return_value_builder.rb +1 -0
- data/lib/gir_ffi/builders/ruby_to_c_convertor.rb +1 -0
- data/lib/gir_ffi/builders/signal_closure_builder.rb +2 -7
- data/lib/gir_ffi/builders/struct_builder.rb +1 -0
- data/lib/gir_ffi/builders/type_builder.rb +1 -0
- data/lib/gir_ffi/builders/unintrospectable_boxed_builder.rb +1 -0
- data/lib/gir_ffi/builders/unintrospectable_builder.rb +1 -0
- data/lib/gir_ffi/builders/union_builder.rb +1 -0
- data/lib/gir_ffi/builders/user_defined_builder.rb +1 -0
- data/lib/gir_ffi/builders/vfunc_argument_builder.rb +1 -0
- data/lib/gir_ffi/builders/vfunc_builder.rb +2 -9
- data/lib/gir_ffi/builders/with_layout.rb +1 -0
- data/lib/gir_ffi/callback_base.rb +1 -0
- data/lib/gir_ffi/class_base.rb +1 -0
- data/lib/gir_ffi/core.rb +1 -0
- data/lib/gir_ffi/enum_base.rb +1 -0
- data/lib/gir_ffi/error_argument_info.rb +1 -0
- data/lib/gir_ffi/error_type_info.rb +1 -0
- data/lib/gir_ffi/ffi_ext/pointer.rb +1 -0
- data/lib/gir_ffi/ffi_ext.rb +1 -0
- data/lib/gir_ffi/field_argument_info.rb +1 -0
- data/lib/gir_ffi/flags_base.rb +1 -0
- data/lib/gir_ffi/g_type.rb +1 -0
- data/lib/gir_ffi/glib_error.rb +1 -0
- data/lib/gir_ffi/in_out_pointer.rb +1 -0
- data/lib/gir_ffi/in_pointer.rb +1 -0
- data/lib/gir_ffi/info_ext/full_type_name.rb +1 -0
- data/lib/gir_ffi/info_ext/i_arg_info.rb +1 -0
- data/lib/gir_ffi/info_ext/i_callable_info.rb +1 -0
- data/lib/gir_ffi/info_ext/i_callback_info.rb +1 -0
- data/lib/gir_ffi/info_ext/i_field_info.rb +1 -0
- data/lib/gir_ffi/info_ext/i_function_info.rb +1 -0
- data/lib/gir_ffi/info_ext/i_property_info.rb +1 -0
- data/lib/gir_ffi/info_ext/i_registered_type_info.rb +1 -0
- data/lib/gir_ffi/info_ext/i_signal_info.rb +1 -0
- data/lib/gir_ffi/info_ext/i_type_info.rb +1 -1
- data/lib/gir_ffi/info_ext/i_unresolved_info.rb +1 -0
- data/lib/gir_ffi/info_ext/i_vfunc_info.rb +1 -0
- data/lib/gir_ffi/info_ext/safe_constant_name.rb +1 -0
- data/lib/gir_ffi/info_ext/safe_function_name.rb +1 -0
- data/lib/gir_ffi/info_ext.rb +1 -0
- data/lib/gir_ffi/interface_base.rb +1 -0
- data/lib/gir_ffi/lib_c.rb +1 -0
- data/lib/gir_ffi/method_stubber.rb +1 -0
- data/lib/gir_ffi/module_base.rb +1 -0
- data/lib/gir_ffi/object_base.rb +1 -0
- data/lib/gir_ffi/object_store.rb +1 -0
- data/lib/gir_ffi/property_not_found_error.rb +1 -0
- data/lib/gir_ffi/receiver_argument_info.rb +1 -0
- data/lib/gir_ffi/receiver_type_info.rb +1 -0
- data/lib/gir_ffi/registered_type_base.rb +1 -0
- data/lib/gir_ffi/return_value_info.rb +1 -0
- data/lib/gir_ffi/signal_not_found_error.rb +1 -0
- data/lib/gir_ffi/sized_array.rb +1 -0
- data/lib/gir_ffi/struct_base.rb +1 -0
- data/lib/gir_ffi/type_base.rb +1 -0
- data/lib/gir_ffi/type_map.rb +1 -0
- data/lib/gir_ffi/unintrospectable_signal_info.rb +1 -0
- data/lib/gir_ffi/unintrospectable_type_info.rb +1 -0
- data/lib/gir_ffi/union_base.rb +1 -0
- data/lib/gir_ffi/user_data_argument_info.rb +1 -0
- data/lib/gir_ffi/user_data_type_info.rb +1 -0
- data/lib/gir_ffi/user_defined_property_info.rb +1 -0
- data/lib/gir_ffi/user_defined_type_info.rb +1 -0
- data/lib/gir_ffi/variable_name_generator.rb +1 -0
- data/lib/gir_ffi/version.rb +1 -1
- data/lib/gir_ffi/vfunc_implementation.rb +1 -0
- data/lib/gir_ffi/zero_terminated.rb +1 -0
- data/lib/gir_ffi-base/glib/boolean.rb +1 -0
- data/lib/gir_ffi-base/glib/strv.rb +1 -0
- data/lib/gir_ffi-base/gobject/lib.rb +1 -0
- data/lib/gir_ffi-base/gobject.rb +1 -0
- data/lib/gir_ffi-base.rb +1 -0
- data/lib/gir_ffi.rb +1 -0
- data/test/base_test_helper.rb +1 -0
- data/test/ffi-glib/array_test.rb +1 -0
- data/test/ffi-glib/byte_array_test.rb +1 -0
- data/test/ffi-glib/bytes_test.rb +1 -0
- data/test/ffi-glib/destroy_notify_test.rb +1 -0
- data/test/ffi-glib/hash_table_test.rb +1 -0
- data/test/ffi-glib/iconv_test.rb +1 -0
- data/test/ffi-glib/list_test.rb +1 -0
- data/test/ffi-glib/main_loop_test.rb +1 -0
- data/test/ffi-glib/ptr_array_test.rb +1 -0
- data/test/ffi-glib/ruby_closure_test.rb +1 -0
- data/test/ffi-glib/s_list_test.rb +1 -0
- data/test/ffi-glib/strv_test.rb +1 -0
- data/test/ffi-glib/variant_test.rb +1 -0
- data/test/ffi-gobject/gobject_test.rb +1 -0
- data/test/ffi-gobject/object_class_test.rb +1 -0
- data/test/ffi-gobject/object_test.rb +1 -0
- data/test/ffi-gobject/value_test.rb +1 -0
- data/test/ffi-gobject_introspection/i_base_info_test.rb +1 -0
- data/test/ffi-gobject_introspection/i_constant_info_test.rb +1 -0
- data/test/ffi-gobject_introspection/i_enum_info_test.rb +1 -0
- data/test/ffi-gobject_introspection/i_function_info_test.rb +1 -0
- data/test/ffi-gobject_introspection/i_interface_info_test.rb +1 -0
- data/test/ffi-gobject_introspection/i_object_info_test.rb +1 -0
- data/test/ffi-gobject_introspection/i_property_info_test.rb +1 -0
- data/test/ffi-gobject_introspection/i_registered_type_info_test.rb +1 -0
- data/test/ffi-gobject_introspection/i_repository_test.rb +1 -0
- data/test/ffi-gobject_introspection/i_struct_info_test.rb +1 -0
- data/test/ffi-gobject_introspection/i_type_info_test.rb +1 -0
- data/test/ffi-gobject_introspection/i_union_info_test.rb +1 -0
- data/test/ffi-gobject_introspection/lib_test.rb +1 -0
- data/test/ffi-gobject_test.rb +1 -0
- data/test/gir_ffi/arg_helper_test.rb +1 -0
- data/test/gir_ffi/builder_test.rb +1 -0
- data/test/gir_ffi/builders/argument_builder_test.rb +17 -0
- data/test/gir_ffi/builders/base_argument_builder_test.rb +1 -0
- data/test/gir_ffi/builders/callback_argument_builder_test.rb +1 -0
- data/test/gir_ffi/builders/callback_builder_test.rb +1 -0
- data/test/gir_ffi/builders/callback_return_value_builder_test.rb +1 -0
- data/test/gir_ffi/builders/constant_builder_test.rb +1 -0
- data/test/gir_ffi/builders/constructor_builder_test.rb +1 -0
- data/test/gir_ffi/builders/enum_builder_test.rb +1 -0
- data/test/gir_ffi/builders/field_builder_test.rb +1 -0
- data/test/gir_ffi/builders/function_builder_test.rb +30 -1
- data/test/gir_ffi/builders/initializer_builder_test.rb +1 -0
- data/test/gir_ffi/builders/interface_builder_test.rb +1 -0
- data/test/gir_ffi/builders/module_builder_test.rb +1 -0
- data/test/gir_ffi/builders/object_builder_test.rb +1 -0
- data/test/gir_ffi/builders/property_builder_test.rb +1 -0
- data/test/gir_ffi/builders/registered_type_builder_test.rb +1 -0
- data/test/gir_ffi/builders/return_value_builder_test.rb +1 -0
- data/test/gir_ffi/builders/signal_closure_builder_test.rb +1 -0
- data/test/gir_ffi/builders/struct_builder_test.rb +1 -0
- data/test/gir_ffi/builders/unintrospectable_boxed_builder_test.rb +1 -0
- data/test/gir_ffi/builders/unintrospectable_builder_test.rb +1 -0
- data/test/gir_ffi/builders/union_builder_test.rb +1 -0
- data/test/gir_ffi/builders/user_defined_builder_test.rb +1 -0
- data/test/gir_ffi/builders/vfunc_builder_test.rb +1 -0
- data/test/gir_ffi/callback_base_test.rb +1 -0
- data/test/gir_ffi/class_base_test.rb +1 -0
- data/test/gir_ffi/error_type_info_test.rb +1 -0
- data/test/gir_ffi/ffi_ext/pointer_test.rb +1 -0
- data/test/gir_ffi/g_type_test.rb +1 -0
- data/test/gir_ffi/in_out_pointer_test.rb +1 -0
- data/test/gir_ffi/in_pointer_test.rb +1 -0
- data/test/gir_ffi/info_ext/i_callable_info_test.rb +1 -0
- data/test/gir_ffi/info_ext/i_callback_info_test.rb +1 -0
- data/test/gir_ffi/info_ext/i_field_info_test.rb +1 -0
- data/test/gir_ffi/info_ext/i_function_info_test.rb +1 -0
- data/test/gir_ffi/info_ext/i_signal_info_test.rb +1 -0
- data/test/gir_ffi/info_ext/i_type_info_test.rb +1 -0
- data/test/gir_ffi/info_ext/i_unresolved_info_test.rb +1 -0
- data/test/gir_ffi/info_ext/safe_constant_name_test.rb +1 -0
- data/test/gir_ffi/info_ext/safe_function_name_test.rb +1 -0
- data/test/gir_ffi/interface_base_test.rb +1 -0
- data/test/gir_ffi/method_stubber_test.rb +1 -0
- data/test/gir_ffi/object_base_test.rb +1 -0
- data/test/gir_ffi/sized_array_test.rb +1 -0
- data/test/gir_ffi/type_map_test.rb +1 -0
- data/test/gir_ffi/unintrospectable_type_info_test.rb +1 -0
- data/test/gir_ffi/user_defined_property_info_test.rb +1 -0
- data/test/gir_ffi/user_defined_type_info_test.rb +1 -0
- data/test/gir_ffi/variable_name_generator_test.rb +1 -0
- data/test/gir_ffi/version_test.rb +1 -0
- data/test/gir_ffi/zero_terminated_test.rb +1 -0
- data/test/gir_ffi-base/glib/boolean_test.rb +2 -1
- data/test/gir_ffi-base/glib/strv_test.rb +1 -0
- data/test/gir_ffi_test.rb +1 -0
- data/test/gir_ffi_test_helper.rb +1 -0
- data/test/integration/callback_exceptions_test.rb +1 -0
- data/test/integration/derived_classes_test.rb +1 -0
- data/test/integration/generated_everything_test.rb +1 -0
- data/test/integration/generated_gimarshallingtests_test.rb +1 -0
- data/test/integration/generated_gio_test.rb +1 -0
- data/test/integration/generated_glib_test.rb +1 -0
- data/test/integration/generated_gobject_test.rb +1 -0
- data/test/integration/generated_gst_test.rb +1 -0
- data/test/integration/generated_gtop_test.rb +1 -0
- data/test/integration/generated_pango_ft2_test.rb +1 -0
- data/test/integration/generated_pango_test.rb +1 -0
- data/test/integration/generated_regress_test.rb +2 -2
- data/test/integration/generated_secret_test.rb +1 -0
- data/test/integration/generated_warnlib_test.rb +1 -0
- data/test/integration/method_lookup_test.rb +1 -0
- data/test/introspection_test_helper.rb +1 -0
- data/test/minitest/stats_plugin.rb +1 -0
- metadata +19 -19
- data/lib/gir_ffi/builders/error_argument_builder.rb +0 -34
metadata
CHANGED
@@ -1,127 +1,127 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gir_ffi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matijs van Zuijlen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
+
type: :runtime
|
14
15
|
name: ffi
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
16
17
|
requirements:
|
17
18
|
- - "~>"
|
18
19
|
- !ruby/object:Gem::Version
|
19
20
|
version: '1.8'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
23
22
|
requirements:
|
24
23
|
- - "~>"
|
25
24
|
- !ruby/object:Gem::Version
|
26
25
|
version: '1.8'
|
26
|
+
prerelease: false
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
+
type: :runtime
|
28
29
|
name: ffi-bit_masks
|
29
30
|
requirement: !ruby/object:Gem::Requirement
|
30
31
|
requirements:
|
31
32
|
- - "~>"
|
32
33
|
- !ruby/object:Gem::Version
|
33
34
|
version: 0.1.0
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
35
|
version_requirements: !ruby/object:Gem::Requirement
|
37
36
|
requirements:
|
38
37
|
- - "~>"
|
39
38
|
- !ruby/object:Gem::Version
|
40
39
|
version: 0.1.0
|
40
|
+
prerelease: false
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
+
type: :runtime
|
42
43
|
name: indentation
|
43
44
|
requirement: !ruby/object:Gem::Requirement
|
44
45
|
requirements:
|
45
46
|
- - "~>"
|
46
47
|
- !ruby/object:Gem::Version
|
47
48
|
version: 0.1.1
|
48
|
-
type: :runtime
|
49
|
-
prerelease: false
|
50
49
|
version_requirements: !ruby/object:Gem::Requirement
|
51
50
|
requirements:
|
52
51
|
- - "~>"
|
53
52
|
- !ruby/object:Gem::Version
|
54
53
|
version: 0.1.1
|
54
|
+
prerelease: false
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
+
type: :development
|
56
57
|
name: minitest
|
57
58
|
requirement: !ruby/object:Gem::Requirement
|
58
59
|
requirements:
|
59
60
|
- - "~>"
|
60
61
|
- !ruby/object:Gem::Version
|
61
62
|
version: '5.5'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
63
|
version_requirements: !ruby/object:Gem::Requirement
|
65
64
|
requirements:
|
66
65
|
- - "~>"
|
67
66
|
- !ruby/object:Gem::Version
|
68
67
|
version: '5.5'
|
68
|
+
prerelease: false
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
+
type: :development
|
70
71
|
name: minitest-rspec_mocks
|
71
72
|
requirement: !ruby/object:Gem::Requirement
|
72
73
|
requirements:
|
73
74
|
- - "~>"
|
74
75
|
- !ruby/object:Gem::Version
|
75
76
|
version: 0.3.0
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
77
|
version_requirements: !ruby/object:Gem::Requirement
|
79
78
|
requirements:
|
80
79
|
- - "~>"
|
81
80
|
- !ruby/object:Gem::Version
|
82
81
|
version: 0.3.0
|
82
|
+
prerelease: false
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
+
type: :development
|
84
85
|
name: rspec-mocks
|
85
86
|
requirement: !ruby/object:Gem::Requirement
|
86
87
|
requirements:
|
87
88
|
- - "~>"
|
88
89
|
- !ruby/object:Gem::Version
|
89
90
|
version: 3.4.1
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
91
|
version_requirements: !ruby/object:Gem::Requirement
|
93
92
|
requirements:
|
94
93
|
- - "~>"
|
95
94
|
- !ruby/object:Gem::Version
|
96
95
|
version: 3.4.1
|
96
|
+
prerelease: false
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
+
type: :development
|
98
99
|
name: rake
|
99
100
|
requirement: !ruby/object:Gem::Requirement
|
100
101
|
requirements:
|
101
102
|
- - "~>"
|
102
103
|
- !ruby/object:Gem::Version
|
103
104
|
version: '10.1'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
105
|
version_requirements: !ruby/object:Gem::Requirement
|
107
106
|
requirements:
|
108
107
|
- - "~>"
|
109
108
|
- !ruby/object:Gem::Version
|
110
109
|
version: '10.1'
|
110
|
+
prerelease: false
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
|
+
type: :development
|
112
113
|
name: aruba
|
113
114
|
requirement: !ruby/object:Gem::Requirement
|
114
115
|
requirements:
|
115
116
|
- - "~>"
|
116
117
|
- !ruby/object:Gem::Version
|
117
118
|
version: 0.12.0
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
119
|
version_requirements: !ruby/object:Gem::Requirement
|
121
120
|
requirements:
|
122
121
|
- - "~>"
|
123
122
|
- !ruby/object:Gem::Version
|
124
123
|
version: 0.12.0
|
124
|
+
prerelease: false
|
125
125
|
description: |2
|
126
126
|
GirFFI creates bindings for GObject-based libraries at runtime based on introspection
|
127
127
|
data provided by the GObject Introspection Repository (GIR) system. Bindings are created
|
@@ -144,6 +144,7 @@ files:
|
|
144
144
|
- README.md
|
145
145
|
- Rakefile
|
146
146
|
- TODO.md
|
147
|
+
- examples/clutter.rb
|
147
148
|
- examples/main_loop.rb
|
148
149
|
- lib/ffi-glib.rb
|
149
150
|
- lib/ffi-glib/array.rb
|
@@ -222,7 +223,6 @@ files:
|
|
222
223
|
- lib/gir_ffi/builders/constant_builder.rb
|
223
224
|
- lib/gir_ffi/builders/constructor_builder.rb
|
224
225
|
- lib/gir_ffi/builders/enum_builder.rb
|
225
|
-
- lib/gir_ffi/builders/error_argument_builder.rb
|
226
226
|
- lib/gir_ffi/builders/field_builder.rb
|
227
227
|
- lib/gir_ffi/builders/flags_builder.rb
|
228
228
|
- lib/gir_ffi/builders/full_c_to_ruby_convertor.rb
|
@@ -1,34 +0,0 @@
|
|
1
|
-
require 'gir_ffi/builders/base_argument_builder'
|
2
|
-
|
3
|
-
module GirFFI
|
4
|
-
module Builders
|
5
|
-
# Implements argument processing for error handling arguments. These
|
6
|
-
# arguments are not part of the introspected signature, but their
|
7
|
-
# presence is indicated by the 'throws' attribute of the function.
|
8
|
-
class ErrorArgumentBuilder < BaseArgumentBuilder
|
9
|
-
def method_argument_name
|
10
|
-
nil
|
11
|
-
end
|
12
|
-
|
13
|
-
def block_argument?
|
14
|
-
false
|
15
|
-
end
|
16
|
-
|
17
|
-
def return_value_name
|
18
|
-
nil
|
19
|
-
end
|
20
|
-
|
21
|
-
def capture_variable_name
|
22
|
-
nil
|
23
|
-
end
|
24
|
-
|
25
|
-
def pre_conversion
|
26
|
-
["#{call_argument_name} = FFI::MemoryPointer.new(:pointer).write_pointer nil"]
|
27
|
-
end
|
28
|
-
|
29
|
-
def post_conversion
|
30
|
-
["GirFFI::ArgHelper.check_error(#{call_argument_name})"]
|
31
|
-
end
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|