summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2010-02-19 19:53:36 +0100
committerMarkus Armbruster <armbru@redhat.com>2010-03-16 17:45:34 +0100
commit8eae73b5d7085b0f9b087033c328fdbbbcc6271d (patch)
tree48fc6f0275b63d8c1bd34b2bb86ded4c41fc965a
parent56e9f56309b7c77dfb328dbf450d04fd54ce4542 (diff)
downloadqemu-8eae73b5d7085b0f9b087033c328fdbbbcc6271d.tar.gz
error: New QERR_BUS_NO_HOTPLUG
-rw-r--r--qerror.c4
-rw-r--r--qerror.h3
2 files changed, 7 insertions, 0 deletions
diff --git a/qerror.c b/qerror.c
index 345bfefe47..d0fc1ae8ba 100644
--- a/qerror.c
+++ b/qerror.c
@@ -49,6 +49,10 @@ static const QErrorStringTable qerror_table[] = {
.desc = "Bus '%(bus)' not found",
},
{
+ .error_fmt = QERR_BUS_NO_HOTPLUG,
+ .desc = "Bus '%(bus)' does not support hotplugging",
+ },
+ {
.error_fmt = QERR_COMMAND_NOT_FOUND,
.desc = "The command %(name) has not been found",
},
diff --git a/qerror.h b/qerror.h
index 87fde06f11..6cd2e2de18 100644
--- a/qerror.h
+++ b/qerror.h
@@ -48,6 +48,9 @@ QError *qobject_to_qerror(const QObject *obj);
#define QERR_BUS_NOT_FOUND \
"{ 'class': 'BusNotFound', 'data': { 'bus': %s } }"
+#define QERR_BUS_NO_HOTPLUG \
+ "{ 'class': 'BusNoHotplug', 'data': { 'bus': %s } }"
+
#define QERR_COMMAND_NOT_FOUND \
"{ 'class': 'CommandNotFound', 'data': { 'name': %s } }"