aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2012-03-20 12:16:54 +0000
committerDaniel P. Berrange <berrange@redhat.com>2012-03-23 12:59:21 +0000
commit1f66c18f794fe2c80cfff8678e34dc0e1a689a17 (patch)
tree667116bc3bcd98b483605ef57a19746254a89ba5 /include
parents/xmlURIPtr/virURIPtr/ in virURIFormat impl (diff)
downloadlibvirt-1f66c18f794fe2c80cfff8678e34dc0e1a689a17.tar.gz
libvirt-1f66c18f794fe2c80cfff8678e34dc0e1a689a17.tar.bz2
libvirt-1f66c18f794fe2c80cfff8678e34dc0e1a689a17.zip
Centralize error reporting for URI parsing/formatting problems
Move error reporting out of the callers, into virURIParse and virURIFormat, to get consistency. * include/libvirt/virterror.h, src/util/virterror.c: Add VIR_FROM_URI * src/util/viruri.c, src/util/viruri.h: Add error reporting * src/esx/esx_driver.c, src/libvirt.c, src/libxl/libxl_driver.c, src/lxc/lxc_driver.c, src/openvz/openvz_driver.c, src/qemu/qemu_driver.c, src/qemu/qemu_migration.c, src/remote/remote_driver.c, src/uml/uml_driver.c, src/vbox/vbox_tmpl.c, src/vmx/vmx.c, src/xen/xen_driver.c, src/xen/xend_internal.c, tests/viruritest.c: Remove error reporting Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/libvirt/virterror.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libvirt/virterror.h b/include/libvirt/virterror.h
index 38ac15e05..c8ec8d40c 100644
--- a/include/libvirt/virterror.h
+++ b/include/libvirt/virterror.h
@@ -85,6 +85,7 @@ typedef enum {
VIR_FROM_LOCKING = 42, /* Error from lock manager */
VIR_FROM_HYPERV = 43, /* Error from Hyper-V driver */
VIR_FROM_CAPABILITIES = 44, /* Error from capabilities */
+ VIR_FROM_URI = 45, /* Error from URI handling */
} virErrorDomain;