Sha256: 2690c1fb454336e84fee5dc6bc9dfdc1720c267ec455de1dfc1b83831a2cde80
Contents?: true
Size: 1.04 KB
Versions: 2
Compression:
Stored size: 1.04 KB
Contents
# frozen_string_literal: true require 'ffi' require 'objspace' require 'libvirt/domain_callback_storage' require 'libvirt/util' require 'libvirt/error' require 'libvirt/ffi/common' require 'libvirt/ffi/libvirt' require 'libvirt/ffi/connection' require 'libvirt/ffi/domain' require 'libvirt/ffi/event' require 'libvirt/ffi/node_info' require 'libvirt/ffi/stream' require 'libvirt/event' require 'libvirt/connection' require 'libvirt/domain' require 'libvirt/node_info' require 'libvirt/stream' require 'libvirt/version' module Libvirt EVENT_HANDLE_READABLE = 1 EVENT_HANDLE_WRITABLE = 2 EVENT_HANDLE_ERROR = 4 EVENT_HANDLE_HANGUP = 8 class << self def lib_version version_ptr = ::FFI::MemoryPointer.new(:ulong) code = FFI::Libvirt.virGetVersion(version_ptr, nil, nil) raise Error, 'failed to get version' if code < 0 version_number = version_ptr.get_ulong(0) Libvirt::Util.parse_version(version_number) end def logger Util.logger end def logger=(logger) Util.logger = logger end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
libvirt_ffi-0.4.1 | lib/libvirt.rb |
libvirt_ffi-0.4.0 | lib/libvirt.rb |