virtualbox-com 0.9.8 → 0.9.9

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,5 +1,5 @@
1
1
  module VirtualBox
2
2
  module COM
3
- VERSION = "0.9.8"
3
+ VERSION = "0.9.9"
4
4
  end
5
5
  end
@@ -138,17 +138,17 @@ class Sig
138
138
  results << data.length
139
139
 
140
140
  # Create the array
141
- c_type, type = mangling(type.first)
141
+ c_type, i_type = mangling(type.first)
142
142
 
143
143
  # If its a regular type (int, bool, etc.) then just make it an
144
144
  # array of that
145
- if type != :interface
145
+ if i_type != :interface
146
146
  # Build a pointer to an array of values
147
147
  result = ::FFI::MemoryPointer.new(c_type, data.length)
148
148
  adder = result.method("put_#{c_type}")
149
149
  data.each_with_index do |single, index|
150
150
  value = []
151
- single_type_to_arg([single], type[0], value)
151
+ single_type_to_arg([single], [type[0], :in], value)
152
152
  adder.call(index, value.first)
153
153
  end
154
154
 
@@ -158,7 +158,7 @@ class Sig
158
158
  array = ::FFI::MemoryPointer.new(:pointer, data.length)
159
159
  data.each_with_index do |datum, i|
160
160
  converted = []
161
- single_type_to_arg([datum], type.first, converted)
161
+ single_type_to_arg([datum], [type[0], :in], converted)
162
162
  array[i].put_pointer(0, converted.first)
163
163
  end
164
164
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: virtualbox-com
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.8
4
+ version: 0.9.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -81,6 +81,7 @@ files:
81
81
  - lib/virtualbox/com/abstract_model.rb
82
82
  - lib/virtualbox/com/exceptions.rb
83
83
  - lib/virtualbox/com/iid.rb
84
+ - lib/virtualbox/com/model/4.2-generated.rb
84
85
  - lib/virtualbox/com/model/4.2.rb
85
86
  - lib/virtualbox/com/util.rb
86
87
  - lib/virtualbox/com/version.rb
@@ -108,7 +109,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
108
109
  version: '0'
109
110
  segments:
110
111
  - 0
111
- hash: -3353364741054747313
112
+ hash: -4510576013779738694
112
113
  required_rubygems_version: !ruby/object:Gem::Requirement
113
114
  none: false
114
115
  requirements: