X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=libvirt%2Flibvirt.mli;h=58198c8e6c8f416b2adc62578543f33288a8441c;hb=a8e571097acd0624c6803c878d09c930055cfd39;hp=1d9da1eef424a92a97be017da74b14b19c90da47;hpb=fef20e25d936421c01b79219f35c7ef1246fa604;p=virt-top.git diff --git a/libvirt/libvirt.mli b/libvirt/libvirt.mli index 1d9da1e..58198c8 100644 --- a/libvirt/libvirt.mli +++ b/libvirt/libvirt.mli @@ -463,18 +463,13 @@ sig | VIR_WAR_NO_NETWORK | VIR_ERR_NO_DOMAIN | VIR_ERR_NO_NETWORK + | VIR_ERR_INVALID_MAC + (* ^^ NB: If you add a variant you MUST edit libvirt_c.c:MAX_VIR_* *) + | VIR_ERR_UNKNOWN of int (** See [] for meaning of these codes. *) val string_of_code : code -> string - type level = - | VIR_ERR_NONE - | VIR_ERR_WARNING - | VIR_ERR_ERROR - (** No error, a warning or an error. *) - - val string_of_level : level -> string - type domain = | VIR_FROM_NONE | VIR_FROM_XEN @@ -491,10 +486,24 @@ sig | VIR_FROM_TEST | VIR_FROM_REMOTE | VIR_FROM_OPENVZ + | VIR_FROM_XENXM + | VIR_FROM_STATS_LINUX + (* ^^ NB: If you add a variant you MUST edit libvirt_c.c: MAX_VIR_* *) + | VIR_FROM_UNKNOWN of int (** Subsystem / driver which produced the error. *) val string_of_domain : domain -> string + type level = + | VIR_ERR_NONE + | VIR_ERR_WARNING + | VIR_ERR_ERROR + (* ^^ NB: If you add a variant you MUST edit libvirt_c.c: MAX_VIR_* *) + | VIR_ERR_UNKNOWN_LEVEL of int + (** No error, a warning or an error. *) + + val string_of_level : level -> string + type t = { code : code; (** Error code. *) domain : domain; (** Origin of the error. *) @@ -541,12 +550,16 @@ 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 {!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 +exception Not_supported of string +(** + Functions may raise + [Not_supported "virFoo"] + (where [virFoo] is the libvirt function name) if a function is + not supported at either compile or run time. This applies to any libvirt function added after version 0.2.1. + See also [http://libvirt.org/hvsupport.html] *)