Skip to content

Commit 653acbf

Browse files
committed
Add admin error domain
Just the addition of VIR_FROM_ADMIN to the enum of error domains. Signed-off-by: Martin Kletzander <[email protected]>
1 parent fb5a0d3 commit 653acbf

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

include/libvirt/virterror.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Description: Provides the interfaces of the libvirt library to handle
55
* errors raised while using the library.
66
*
7-
* Copyright (C) 2006, 2010-2012 Red Hat, Inc.
7+
* Copyright (C) 2006-2015 Red Hat, Inc.
88
*
99
* This library is free software; you can redistribute it and/or
1010
* modify it under the terms of the GNU Lesser General Public
@@ -126,6 +126,7 @@ typedef enum {
126126

127127
VIR_FROM_POLKIT = 60, /* Error from polkit code */
128128
VIR_FROM_THREAD = 61, /* Error from thread utils */
129+
VIR_FROM_ADMIN = 62, /* Error from admin backend */
129130

130131
# ifdef VIR_ENUM_SENTINELS
131132
VIR_ERR_DOMAIN_LAST

src/util/virerror.c

+1
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ VIR_ENUM_IMPL(virErrorDomain, VIR_ERR_DOMAIN_LAST,
133133

134134
"Polkit", /* 60 */
135135
"Thread jobs",
136+
"Admin Interface",
136137
)
137138

138139

0 commit comments

Comments
 (0)