Sha256: f7768271d43b774d4073b6beb4eb4f271ea585a8d179985086631bdf7536ef67
Contents?: true
Size: 596 Bytes
Versions: 1
Compression:
Stored size: 596 Bytes
Contents
require "libvirt-ruby-mapping/version" module Libvirt module Ruby autoload :Connect, 'libvirt-ruby-mapping/connect' def self.initialize virInitialize(:int) unless respond_to_missing?(:virInitialize, false) virInitialize end def self.version virGetVersion(:pointer, :string, :pointer, :int) unless respond_to_missing?(:virGetVersion, false) p = FFI::MemoryPointer.new(:ulong) virGetVersion(p, nil, nil) version = p.get_ulong(0) "#{version / 1_000_000}.#{(version % 1_000_000) / 1_000}.#{(version % 1_000_000) %1000}" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
libvirt-ruby-mapping-0.1.0 | lib/libvirt-ruby-mapping.rb |