]> xenbits.xensource.com Git - libvirt.git/commitdiff
Add admin error domain
authorMartin Kletzander <mkletzan@redhat.com>
Wed, 15 Apr 2015 14:17:11 +0000 (16:17 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Tue, 16 Jun 2015 11:46:20 +0000 (13:46 +0200)
Just the addition of VIR_FROM_ADMIN to the enum of error domains.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
include/libvirt/virterror.h
src/util/virerror.c

index 9c5b0692820ebe07bbb53950899e07c46651bd35..632503021a306413b03c659810570792c44513f9 100644 (file)
@@ -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
index 73dae95ec92237effe25b6e3547d50aa55966da3..fae627b780bfecc980d77b47e2d46045e91b5cea 100644 (file)
@@ -133,6 +133,7 @@ VIR_ENUM_IMPL(virErrorDomain, VIR_ERR_DOMAIN_LAST,
 
               "Polkit", /* 60 */
               "Thread jobs",
+              "Admin Interface",
     )