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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6f18fda01fd18bbcd93135a6e7e408af3332bf7a01363f01c830843d97866f2a
4
- data.tar.gz: b31a85d0174d82322da190cfdba8663b1bfaea7403f040ac6235f7073793b93b
3
+ metadata.gz: f29a04c1f627275716dfa267007ef68f83666d5948dff69d978338fd3b4d9b07
4
+ data.tar.gz: 7f358f6af3b96ef574fdcc9dc2e913ddb0290ad9be18bd1945d8f80731fc5d1b
5
5
  SHA512:
6
- metadata.gz: bab76b21d63f9165320381f14b3f66fade93a9c9f7ecdbd9619d26185853de311f54c1f04471ca740364ae55025bb1a4314472bb5b55a0d8b7e2d4f6e4feadea
7
- data.tar.gz: 699e82194c12739cd78575f4142c3aa87fd9caab079b2c8503f349c0bbd3a3658f5463f1d058f69c77c628ab2b758d3606d817ef66578c5713086724daed4a5c
6
+ metadata.gz: 2b7fe3d2e0c4b2a828352ade8d12a27e825ec4d6e3b0055baf6ddcdd655f3d2d4fe0db595e6a58399b32a58b8cf09cb3b92f9c4e03e27934b9efd3d931ebb8f5
7
+ data.tar.gz: 179640661f66bd1b1c79d5417312c68ccd1e70c62602c963a1b59a33f02c4534413c5dc6c8f43236e4fbdcbf45c6c015cdc1ba24780fd85b642a56997c2ed884
@@ -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)
@@ -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]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Libvirt
4
- VERSION = '0.5.4'
4
+ VERSION = '0.5.5'
5
5
  end
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
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-03-23 00:00:00.000000000 Z
11
+ date: 2020-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi