From patchwork Tue Mar 5 17:51:32 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Shah X-Patchwork-Id: 225132 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 52ED02C031A for ; Wed, 6 Mar 2013 04:59:43 +1100 (EST) Received: from localhost ([::1]:33950 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCw9N-0006MB-84 for incoming@patchwork.ozlabs.org; Tue, 05 Mar 2013 12:59:41 -0500 Received: from eggs.gnu.org ([208.118.235.92]:45461) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCw7P-0003Nx-6D for qemu-devel@nongnu.org; Tue, 05 Mar 2013 12:59:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UCw6h-0000fz-LN for qemu-devel@nongnu.org; Tue, 05 Mar 2013 12:57:39 -0500 Received: from mx1.redhat.com ([209.132.183.28]:19310) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCw6h-0000fr-Dp for qemu-devel@nongnu.org; Tue, 05 Mar 2013 12:56:55 -0500 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r25HurYv006070 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 5 Mar 2013 12:56:53 -0500 Received: from localhost (ovpn-113-84.phx2.redhat.com [10.3.113.84]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id r25HuTKk014647; Tue, 5 Mar 2013 12:56:49 -0500 From: Amit Shah To: qemu list Date: Tue, 5 Mar 2013 23:21:32 +0530 Message-Id: <17cefde0a8d7807294bab95e93c3328a20d3f2ed.1362505276.git.amit.shah@redhat.com> In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: Amit Shah , Anthony Liguori , Anthony Liguori Subject: [Qemu-devel] [PATCH 17/20] qemu-char: move text console init to console.c X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Anthony Liguori Signed-off-by: Anthony Liguori Signed-off-by: Amit Shah --- qemu-char.c | 1 - ui/console.c | 7 +++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/qemu-char.c b/qemu-char.c index cf02cab..b82d643 100644 --- a/qemu-char.c +++ b/qemu-char.c @@ -3663,7 +3663,6 @@ static void register_types(void) register_char_driver("null", qemu_chr_open_null); register_char_driver("socket", qemu_chr_open_socket); register_char_driver("udp", qemu_chr_open_udp); - register_char_driver("vc", vc_init); register_char_driver("memory", qemu_chr_open_ringbuf); #ifdef _WIN32 register_char_driver("file", qemu_chr_open_win_file_out); diff --git a/ui/console.c b/ui/console.c index 0d95f32..83a6fa3 100644 --- a/ui/console.c +++ b/ui/console.c @@ -1739,3 +1739,10 @@ PixelFormat qemu_default_pixelformat(int bpp) } return pf; } + +static void register_types(void) +{ + register_char_driver("vc", text_console_init); +} + +type_init(register_types);