Module Libvirt


module Libvirt: sig .. end
OCaml bindings for libvirt. (C) Copyright 2007 Richard W.M. Jones, Red Hat Inc. http://libvirt.org/ $Id: libvirt.mli,v 1.3 2007/08/22 10:04:07 rjones Exp $

type uuid = string 
This is a "raw" UUID, ie. a packed string of bytes.
type xml = string 
Type of XML (an uninterpreted string of bytes). Use PXP, expat, xml-light, etc. if you want to do anything useful with the XML.
val get_version : ?driver:string -> unit -> int * int
get_version () returns the library version in the first part of the tuple, and 0 in the second part.

get_version ~driver () returns the library version in the first part of the tuple, and the version of the driver called driver in the second part.

The version numbers are encoded as 1,000,000 * major + 1,000 * minor + release.

val uuid_length : int
Length of packed UUIDs.
val uuid_string_length : int
Length of UUID strings.
type rw = [ `R | `W ] 
type ro = [ `R ] 
module Connect: sig .. end
Module dealing with connections.
module Domain: sig .. end
Module dealing with domains.
module Network: sig .. end
Module dealing with networks.
module Virterror: sig .. end
Module dealing with errors.
exception Virterror of Virterror.t
This exception can be raised by any library function that detects an error. To get a printable error message, call Libvirt.Virterror.to_string on the content of this exception.

Note that functions may also raise Invalid_argument "virFoo not supported" (where virFoo is the libvirt function name) if a function is not supported at either compile or runtime. This applies to any libvirt function added after version 0.2.1. See also http://libvirt.org/hvsupport.html