Module: FFI::Libvirt

Extended by:
Library
Defined in:
lib/ffi/libvirt.rb,
lib/ffi/libvirt/util.rb,
lib/ffi/libvirt/error.rb,
lib/ffi/libvirt/types.rb,
lib/ffi/libvirt/version.rb,
lib/ffi/libvirt/functions.rb,
lib/ffi/libvirt/node_info.rb,
lib/ffi/libvirt/domain_info.rb,
lib/ffi/libvirt/error_types.rb,
lib/ffi/libvirt/error_functions.rb,
lib/ffi/libvirt/storage_pool_info.rb,
lib/ffi/libvirt/storage_volume_info.rb

Overview

The FFI Libvirt module contains the raw access to the Libvirt C API. This module contains no fluff or nice abstractions above the API, and is actually a way to access the C API directly. This also means that it is up to you to manage all the pointers and so on that come with this power.

Defined Under Namespace

Modules: Util Classes: DomainInfo, Error, NodeInfo, StoragePoolInfo, StorageVolumeInfo

Class Method Summary collapse

Class Method Details

.versionArray

Returns the version of libvirt client on this machine. The version is returned as an array of [major, minor, patch].

Returns:

  • (Array)


10
11
12
# File 'lib/ffi/libvirt/version.rb', line 10

def version
  Util.parse_version_number(raw_version)
end