Fri Jul 6 15:54:00 BST 2007 Richard W.M. Jones <rjones@redhat.com>

* include/libvirt/virterror.h, src/virterror.c, src/libvirt.c:
	  Add VIR_ERR_NO_DOMAIN and VIR_ERR_NO_NETWORK errors, which
	  indicate that there is no domain/network from vir*Lookup* functions.
	* src/qemu_driver.c: Use VIR_ERR_NO_DOMAIN in lookup functions.
	* src/test.c: Use VIR_ERR_NO_DOMAIN in lookup functions.
This commit is contained in:
Richard W.M. Jones
2007-07-06 14:56:15 +00:00
parent 44b20d1056
commit b26376750e
6 changed files with 64 additions and 25 deletions

View File

@@ -125,6 +125,8 @@ typedef enum {
VIR_ERR_RPC, /* some sort of RPC error */
VIR_ERR_GNUTLS_ERROR, /* error from a GNUTLS call */
VIR_WAR_NO_NETWORK, /* failed to start network */
VIR_ERR_NO_DOMAIN, /* domain not found or unexpectedly disappeared */
VIR_ERR_NO_NETWORK, /* network not found */
} virErrorNumber;
/**