libvirt_ffi 0.5.4 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/libvirt/domain.rb +7 -0
- data/lib/libvirt/ffi/domain.rb +5 -0
- 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: f29a04c1f627275716dfa267007ef68f83666d5948dff69d978338fd3b4d9b07
|
4
|
+
data.tar.gz: 7f358f6af3b96ef574fdcc9dc2e913ddb0290ad9be18bd1945d8f80731fc5d1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b7fe3d2e0c4b2a828352ade8d12a27e825ec4d6e3b0055baf6ddcdd655f3d2d4fe0db595e6a58399b32a58b8cf09cb3b92f9c4e03e27934b9efd3d931ebb8f5
|
7
|
+
data.tar.gz: 179640661f66bd1b1c79d5417312c68ccd1e70c62602c963a1b59a33f02c4534413c5dc6c8f43236e4fbdcbf45c6c015cdc1ba24780fd85b642a56997c2ed884
|
data/lib/libvirt/domain.rb
CHANGED
@@ -179,6 +179,13 @@ module Libvirt
|
|
179
179
|
result
|
180
180
|
end
|
181
181
|
|
182
|
+
def persistent?
|
183
|
+
result = FFI::Domain.virDomainIsPersistent(@dom_ptr)
|
184
|
+
raise Errors::LibError, "Couldn't set domain metadata" if result.negative?
|
185
|
+
|
186
|
+
result == 1
|
187
|
+
end
|
188
|
+
|
182
189
|
private
|
183
190
|
|
184
191
|
def dbg(&block)
|
data/lib/libvirt/ffi/domain.rb
CHANGED
@@ -798,6 +798,11 @@ module Libvirt
|
|
798
798
|
[:pointer, :metadata_type, :string, :modification_impact],
|
799
799
|
:string
|
800
800
|
|
801
|
+
# int virDomainIsPersistent (
|
802
|
+
# virDomainPtr dom
|
803
|
+
# )
|
804
|
+
attach_function :virDomainIsPersistent, [:pointer], :int
|
805
|
+
|
801
806
|
# Converts detail from lifecycle callback from integer to symbol name.
|
802
807
|
# @param event [Symbol] enum :event_type (virDomainEventType)
|
803
808
|
# @param detail [Integer]
|
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.5.
|
4
|
+
version: 0.5.5
|
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-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|