diff options
author | Martin Kletzander <mkletzan@redhat.com> | 2015-04-15 16:17:11 +0200 |
---|---|---|
committer | Martin Kletzander <mkletzan@redhat.com> | 2015-06-16 13:46:20 +0200 |
commit | 653acbfd62c00f8242470fad9aa258f9f17c042b (patch) | |
tree | a1b27b890e602faa203185aad97a74f9e2590e67 | |
parent | fb5a0d33886cbff647e0da1b2b1a56780f9a0e6e (diff) | |
download | libvirt-653acbfd62c00f8242470fad9aa258f9f17c042b.tar.gz |
Add admin error domain
Just the addition of VIR_FROM_ADMIN to the enum of error domains.
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
-rw-r--r-- | include/libvirt/virterror.h | 3 | ||||
-rw-r--r-- | src/util/virerror.c | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/include/libvirt/virterror.h b/include/libvirt/virterror.h index 9c5b069282..632503021a 100644 --- a/include/libvirt/virterror.h +++ b/include/libvirt/virterror.h @@ -4,7 +4,7 @@ * Description: Provides the interfaces of the libvirt library to handle * errors raised while using the library. * - * Copyright (C) 2006, 2010-2012 Red Hat, Inc. + * Copyright (C) 2006-2015 Red Hat, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -126,6 +126,7 @@ typedef enum { VIR_FROM_POLKIT = 60, /* Error from polkit code */ VIR_FROM_THREAD = 61, /* Error from thread utils */ + VIR_FROM_ADMIN = 62, /* Error from admin backend */ # ifdef VIR_ENUM_SENTINELS VIR_ERR_DOMAIN_LAST diff --git a/src/util/virerror.c b/src/util/virerror.c index 73dae95ec9..fae627b780 100644 --- a/src/util/virerror.c +++ b/src/util/virerror.c @@ -133,6 +133,7 @@ VIR_ENUM_IMPL(virErrorDomain, VIR_ERR_DOMAIN_LAST, "Polkit", /* 60 */ "Thread jobs", + "Admin Interface", ) |