Patchwork [1/2] qemu,qmp: QError: New QERR_UNSUPPORTED

login
register
mail settings
Submitter Lai Jiangshan
Date March 7, 2011, 9:45 a.m.
Message ID <4D74A932.8080900@cn.fujitsu.com>
Download mbox | patch
Permalink /patch/85698/
State New
Headers show

Comments

Lai Jiangshan - March 7, 2011, 9:45 a.m.
From: Lai Jiangshan <laijs@cn.fujitsu.com>
Date: Mon, 7 Mar 2011 17:05:04 +0800
Subject: [PATCH 1/2] qemu,qmp: QError: New QERR_UNSUPPORTED

New QERR_UNSUPPORTED for unsupported commands or requests.

---
 qerror.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

Patch

diff --git a/qerror.h b/qerror.h
index f732d45..43cc87b 100644
--- a/qerror.h
+++ b/qerror.h
@@ -165,6 +165,9 @@  QError *qobject_to_qerror(const QObject *obj);
 #define QERR_UNDEFINED_ERROR \
     "{ 'class': 'UndefinedError', 'data': {} }"
 
+#define QERR_UNSUPPORTED \
+    "{ 'class': 'Unsupported', 'data': {} }"
+
 #define QERR_UNKNOWN_BLOCK_FORMAT_FEATURE \
     "{ 'class': 'UnknownBlockFormatFeature', 'data': { 'device': %s, 'format': %s, 'feature': %s } }"