summaryrefslogtreecommitdiffstats
path: root/qerror.h
diff options
context:
space:
mode:
authorAmos Kong2012-05-10 18:28:08 +0200
committerAnthony Liguori2012-05-10 19:37:57 +0200
commitaed3d11df6d14ce63ac754601e4df965c608f6bd (patch)
treefd304d39b50a4997aa490a27029ac9077019573f /qerror.h
parentmove CPU definitions to /usr/share/qemu/cpus-x86_64.conf (v2) (diff)
downloadqemu-aed3d11df6d14ce63ac754601e4df965c608f6bd.tar.gz
qemu-aed3d11df6d14ce63ac754601e4df965c608f6bd.tar.xz
qemu-aed3d11df6d14ce63ac754601e4df965c608f6bd.zip
qerror: add five qerror strings
Add five new qerror strings, they are about listen/connect socket: QERR_SOCKET_CONNECT_IN_PROGRESS QERR_SOCKET_CONNECT_FAILED QERR_SOCKET_LISTEN_FAILED QERR_SOCKET_BIND_FAILED QERR_SOCKET_CREATE_FAILED Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com> Signed-off-by: Amos Kong <akong@redhat.com> Reviewed-by: Orit Wasserman <owasserm@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qerror.h')
-rw-r--r--qerror.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/qerror.h b/qerror.h
index 5c23c1ff20..4cbba48c5a 100644
--- a/qerror.h
+++ b/qerror.h
@@ -248,4 +248,19 @@ QError *qobject_to_qerror(const QObject *obj);
#define QERR_VNC_SERVER_FAILED \
"{ 'class': 'VNCServerFailed', 'data': { 'target': %s } }"
+#define QERR_SOCKET_CONNECT_IN_PROGRESS \
+ "{ 'class': 'SockConnectInprogress', 'data': {} }"
+
+#define QERR_SOCKET_CONNECT_FAILED \
+ "{ 'class': 'SockConnectFailed', 'data': {} }"
+
+#define QERR_SOCKET_LISTEN_FAILED \
+ "{ 'class': 'SockListenFailed', 'data': {} }"
+
+#define QERR_SOCKET_BIND_FAILED \
+ "{ 'class': 'SockBindFailed', 'data': {} }"
+
+#define QERR_SOCKET_CREATE_FAILED \
+ "{ 'class': 'SockCreateFailed', 'data': {} }"
+
#endif /* QERROR_H */