]> git.proxmox.com Git - qemu.git/commitdiff
error: New QERR_BUS_NO_HOTPLUG
authorMarkus Armbruster <armbru@redhat.com>
Fri, 19 Feb 2010 18:53:36 +0000 (19:53 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Tue, 16 Mar 2010 16:45:34 +0000 (17:45 +0100)
qerror.c
qerror.h

index 345bfefe4747b6a6c2a2b1d3d7dce288d28bf4e4..d0fc1ae8ba863aa79fd630073249dd3830a53ef4 100644 (file)
--- a/qerror.c
+++ b/qerror.c
@@ -48,6 +48,10 @@ static const QErrorStringTable qerror_table[] = {
         .error_fmt = QERR_BUS_NOT_FOUND,
         .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",
index 87fde06f11215626e36b5b423b7b13b041b0c308..6cd2e2de1843a59f5b5535835df58acc587f024e 100644 (file)
--- 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 } }"