libvirt_ffi 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/libvirt/connection.rb +6 -3
- data/lib/libvirt/host_callback_storage.rb +10 -2
- data/lib/libvirt/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b00c5abd950bc50a399401e1cd58739b9e730aa51854d0e1e6a33367ca6a5a9
|
4
|
+
data.tar.gz: 78cf9477468e8f3ce2501f516ccaa0036ca2423bba115ca2838d10587e80496a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8b57bc7809f3d25297a5e051753777f092ef11b9609b5d1c3046f6f5961b452c55a2dfc0501bab92d53b9ca847b1657eea066ff9f6865dd46cc111ae7dbe66c
|
7
|
+
data.tar.gz: 2bb593a6571ba042f8f838523a21a4f4ff91c5242c08d55821af983d4561b2aa5faaed88e53d489457b6eae8fdb97c3802b099693c90f69c8ac169b52ec238bb
|
data/lib/libvirt/connection.rb
CHANGED
@@ -180,7 +180,8 @@ module Libvirt
|
|
180
180
|
connection_pointer: @conn_ptr,
|
181
181
|
callback_id: result,
|
182
182
|
cb: block,
|
183
|
-
opaque: opaque
|
183
|
+
opaque: opaque,
|
184
|
+
free_func: cb_data_free_func
|
184
185
|
)
|
185
186
|
result
|
186
187
|
end
|
@@ -213,7 +214,8 @@ module Libvirt
|
|
213
214
|
connection_pointer: @conn_ptr,
|
214
215
|
callback_id: result,
|
215
216
|
cb: block,
|
216
|
-
opaque: opaque
|
217
|
+
opaque: opaque,
|
218
|
+
free_func: cb_data_free_func
|
217
219
|
)
|
218
220
|
result
|
219
221
|
end
|
@@ -256,7 +258,8 @@ module Libvirt
|
|
256
258
|
connection_pointer: @conn_ptr,
|
257
259
|
callback_id: result,
|
258
260
|
cb: block,
|
259
|
-
opaque: opaque
|
261
|
+
opaque: opaque,
|
262
|
+
free_func: cb_data_free_func
|
260
263
|
)
|
261
264
|
result
|
262
265
|
end
|
@@ -29,12 +29,20 @@ module Libvirt
|
|
29
29
|
[cb_data, cb_data_free_func]
|
30
30
|
end
|
31
31
|
|
32
|
-
def store_struct(cb_data,
|
32
|
+
def store_struct(cb_data, options)
|
33
33
|
dbg { '#store_struct' }
|
34
34
|
|
35
|
+
options.assert_valid_keys(:connection_pointer, :callback_id, :cb, :opaque, :free_func)
|
36
|
+
connection_pointer = options.fetch(:connection_pointer)
|
37
|
+
callback_id = options.fetch(:callback_id)
|
38
|
+
cb = options.fetch(:cb)
|
39
|
+
opaque = options.fetch(:opaque)
|
40
|
+
free_func = options.fetch(:free_func)
|
35
41
|
cb_data[:connection_pointer] = connection_pointer
|
36
42
|
cb_data[:callback_id] = callback_id
|
37
|
-
@inner_storage[connection_pointer.address][callback_id] = {
|
43
|
+
@inner_storage[connection_pointer.address][callback_id] = {
|
44
|
+
cb: cb, opaque: opaque, pointer: cb_data.pointer, free_func: free_func
|
45
|
+
}
|
38
46
|
end
|
39
47
|
|
40
48
|
def remove_struct(pointer)
|
data/lib/libvirt/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libvirt_ffi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Denis Talakevich
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|