summaryrefslogtreecommitdiffstats
path: root/libvirt/libvirt.mli
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2007-11-20 13:11:29 +0000
committerRichard W.M. Jones <rjones@redhat.com>2007-11-20 13:11:29 +0000
commit38e7a75efaab8a6a709cbad8342bca4a45ead8cc (patch)
tree30e6333289aee0b2237d3684d69bfff016079693 /libvirt/libvirt.mli
parent9a4b8fc45a07dfb0bb1e388d1991673db776baae (diff)
downloadvirt-top-38e7a75efaab8a6a709cbad8342bca4a45ead8cc.tar.gz
virt-top-38e7a75efaab8a6a709cbad8342bca4a45ead8cc.tar.xz
virt-top-38e7a75efaab8a6a709cbad8342bca4a45ead8cc.zip
* libvirt/libvirt.mli, libvirt/libvirt.ml: New error numbers
in base libvirt. * libvirt/libvirt_c.c: Gracefully handle the case where libvirt throws an error number we have not heard of before (eg. when dynamic linking with newer libvirt). * configure.ac: Check <libvirt/virterror.h> exists. * configure.ac: Version 0.3.3.4.
Diffstat (limited to 'libvirt/libvirt.mli')
-rw-r--r--libvirt/libvirt.mli25
1 files changed, 17 insertions, 8 deletions
diff --git a/libvirt/libvirt.mli b/libvirt/libvirt.mli
index 1d9da1e..aa4b9f4 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 [<libvirt/virterror.h>] 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. *)