Sha256: b6735acdc99d11a0a520ff47b5eedaecd9188f50e258dfe5d3edead373df44dd
Contents?: true
Size: 532 Bytes
Versions: 1
Compression:
Stored size: 532 Bytes
Contents
require "libvirt-ruby-mapping/version" module Libvirt module Ruby def initialize virInitialize(:int) unless respond_to?(:virInitialize) virInitialize end def self.version virGetVersion(:pointer, :string, :pointer, :int) unless respond_to?(:virGetVersion) 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 Libvirt::ruby.initialize
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
libvirt-ruby-mapping-0.0.1 | lib/libvirt-ruby-mapping.rb |