projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc98eb4
)
error: New QERR_BUS_NOT_FOUND
author
Markus Armbruster
<armbru@redhat.com>
Fri, 19 Feb 2010 17:05:39 +0000
(18:05 +0100)
committer
Markus Armbruster
<armbru@redhat.com>
Tue, 16 Mar 2010 16:45:34 +0000
(17:45 +0100)
qerror.c
patch
|
blob
|
history
qerror.h
patch
|
blob
|
history
diff --git
a/qerror.c
b/qerror.c
index d8eb32998a5aee0f81af78794bfbe3ef39d40705..75f7b58465e4069fdd0e874f6f82c370d3732b0a 100644
(file)
--- a/
qerror.c
+++ b/
qerror.c
@@
-40,6
+40,10
@@
static const QType qerror_type = {
* "running out of foo: %(foo)%%"
*/
static const QErrorStringTable qerror_table[] = {
+ {
+ .error_fmt = QERR_BUS_NOT_FOUND,
+ .desc = "Bus '%(bus)' not found",
+ },
{
.error_fmt = QERR_COMMAND_NOT_FOUND,
.desc = "The command %(name) has not been found",
diff --git
a/qerror.h
b/qerror.h
index a0730edd627f0cde60ce60582e7cadde2e69d22f..84928080fc7f371eae635d2ee7ab9afa83fd8dd6 100644
(file)
--- a/
qerror.h
+++ b/
qerror.h
@@
-42,6
+42,9
@@
QError *qobject_to_qerror(const QObject *obj);
/*
* QError class list
*/
+#define QERR_BUS_NOT_FOUND \
+ "{ 'class': 'BusNotFound', 'data': { 'bus': %s } }"
+
#define QERR_COMMAND_NOT_FOUND \
"{ 'class': 'CommandNotFound', 'data': { 'name': %s } }"