From patchwork Wed Feb 24 17:55:50 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [RFC,38/48] error: New QERR_BUS_NO_HOTPLUG Date: Wed, 24 Feb 2010 07:55:50 -0000 From: Markus Armbruster X-Patchwork-Id: 46166 Message-Id: <1267034160-3517-39-git-send-email-armbru@redhat.com> To: qemu-devel@nongnu.org Signed-off-by: Markus Armbruster --- qerror.c | 4 ++++ qerror.h | 3 +++ 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/qerror.c b/qerror.c index 4761ae5..38db6b2 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 8433d84..9db909a 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 } }"