From patchwork Mon Dec 7 20:37:08 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Armbruster X-Patchwork-Id: 40531 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id B8F1CB6F14 for ; Tue, 8 Dec 2009 08:04:42 +1100 (EST) Received: from localhost ([127.0.0.1]:41048 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHkl5-0000VF-IW for incoming@patchwork.ozlabs.org; Mon, 07 Dec 2009 16:04:39 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NHkKq-00031K-Ph for qemu-devel@nongnu.org; Mon, 07 Dec 2009 15:37:33 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NHkKk-0002wL-Bl for qemu-devel@nongnu.org; Mon, 07 Dec 2009 15:37:31 -0500 Received: from [199.232.76.173] (port=46522 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHkKj-0002vw-UV for qemu-devel@nongnu.org; Mon, 07 Dec 2009 15:37:26 -0500 Received: from oxygen.pond.sub.org ([213.239.205.148]:47576) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NHkKf-0001SC-Qm for qemu-devel@nongnu.org; Mon, 07 Dec 2009 15:37:22 -0500 Received: from crossbow.pond.sub.org (pD9E38C82.dip.t-dialin.net [217.227.140.130]) by oxygen.pond.sub.org (Postfix) with ESMTPA id 6491C276D59 for ; Mon, 7 Dec 2009 21:37:19 +0100 (CET) Received: by crossbow.pond.sub.org (Postfix, from userid 500) id 13B1820BEC; Mon, 7 Dec 2009 21:37:17 +0100 (CET) From: Markus Armbruster To: qemu-devel@nongnu.org Date: Mon, 7 Dec 2009 21:37:08 +0100 Message-Id: <1260218236-22143-11-git-send-email-armbru@redhat.com> X-Mailer: git-send-email 1.6.2.5 In-Reply-To: <1260218236-22143-1-git-send-email-armbru@redhat.com> References: <1260218236-22143-1-git-send-email-armbru@redhat.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: lcapitulino@redhat.com Subject: [Qemu-devel] [FOR 0.12 PATCH 10/18] QError: New QERR_VNC_SERVER_FAILED X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@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 1bb68c4..128a91e 100644 --- a/qerror.c +++ b/qerror.c @@ -100,6 +100,10 @@ static const QErrorStringTable qerror_table[] = { .error_fmt = QERR_UNDEFINED_ERROR, .desc = "An undefined error has ocurred", }, + { + .error_fmt = QERR_VNC_SERVER_FAILED, + .desc = "Could not start VNC server on %(target)", + }, {} }; diff --git a/qerror.h b/qerror.h index b856899..1a05d9a 100644 --- a/qerror.h +++ b/qerror.h @@ -83,4 +83,7 @@ QError *qobject_to_qerror(const QObject *obj); #define QERR_UNDEFINED_ERROR \ "{ 'class': 'UndefinedError', 'data': {} }" +#define QERR_VNC_SERVER_FAILED \ + "{ 'class': 'VNCServerFailed', 'data': { 'target': %s } }" + #endif /* QERROR_H */