summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@redhat.com>2006-02-27 22:32:54 +0000
committerDaniel Veillard <veillard@redhat.com>2006-02-27 22:32:54 +0000
commit8bc437e412580815db2b9451eabaed20ea91d71e (patch)
tree487a1d721a52827907df33692105ffd1a3b2b426 /include
parent5548938d629d6400f12700034de6f96f363be483 (diff)
downloadlibvirt-8bc437e412580815db2b9451eabaed20ea91d71e.tar.gz
* TODO: updated, and added python hooks for error handling
* include/virterror.h src/virterror.c src/xml.c: error interception and reporting should be done. Daniel
Diffstat (limited to 'include')
-rw-r--r--include/libvirt/virterror.h9
-rw-r--r--include/virterror.h9
2 files changed, 18 insertions, 0 deletions
diff --git a/include/libvirt/virterror.h b/include/libvirt/virterror.h
index a5c9050233..eb28be0827 100644
--- a/include/libvirt/virterror.h
+++ b/include/libvirt/virterror.h
@@ -41,6 +41,7 @@ typedef enum {
VIR_FROM_XEN, /* Error at Xen hypervisor layer */
VIR_FROM_XEND, /* Error at connection with xend daemon */
VIR_FROM_SEXPR, /* Error in the S-Epression code */
+ VIR_FROM_XML, /* Error in the XML code */
VIR_FROM_DOM, /* Error when operating on a domain */
} virErrorDomain;
@@ -89,6 +90,14 @@ typedef enum {
VIR_ERR_SEXPR_SERIAL,/* failure to serialize an S-Expr */
VIR_ERR_NO_XEN,/* could not open Xen hypervisor control */
VIR_ERR_XEN_CALL,/* failure doing an hypervisor call */
+ VIR_ERR_OS_TYPE, /* unknown OS type */
+ VIR_ERR_NO_KERNEL, /* missing kernel informations */
+ VIR_ERR_NO_ROOT, /* missing root device informations */
+ VIR_ERR_NO_SOURCE, /* missing source device informations */
+ VIR_ERR_NO_TARGET, /* missing target device informations */
+ VIR_ERR_NO_NAME, /* missing domain name informations */
+ VIR_ERR_NO_OS, /* missing domain OS informations */
+ VIR_ERR_NO_DEVICE, /* missing domain devices informations */
} virErrorNumber;
/**
diff --git a/include/virterror.h b/include/virterror.h
index a5c9050233..eb28be0827 100644
--- a/include/virterror.h
+++ b/include/virterror.h
@@ -41,6 +41,7 @@ typedef enum {
VIR_FROM_XEN, /* Error at Xen hypervisor layer */
VIR_FROM_XEND, /* Error at connection with xend daemon */
VIR_FROM_SEXPR, /* Error in the S-Epression code */
+ VIR_FROM_XML, /* Error in the XML code */
VIR_FROM_DOM, /* Error when operating on a domain */
} virErrorDomain;
@@ -89,6 +90,14 @@ typedef enum {
VIR_ERR_SEXPR_SERIAL,/* failure to serialize an S-Expr */
VIR_ERR_NO_XEN,/* could not open Xen hypervisor control */
VIR_ERR_XEN_CALL,/* failure doing an hypervisor call */
+ VIR_ERR_OS_TYPE, /* unknown OS type */
+ VIR_ERR_NO_KERNEL, /* missing kernel informations */
+ VIR_ERR_NO_ROOT, /* missing root device informations */
+ VIR_ERR_NO_SOURCE, /* missing source device informations */
+ VIR_ERR_NO_TARGET, /* missing target device informations */
+ VIR_ERR_NO_NAME, /* missing domain name informations */
+ VIR_ERR_NO_OS, /* missing domain OS informations */
+ VIR_ERR_NO_DEVICE, /* missing domain devices informations */
} virErrorNumber;
/**