From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MkhSz-0007zJ-KX for qemu-devel@nongnu.org; Mon, 07 Sep 2009 12:53:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MkhSu-0007ts-Hd for qemu-devel@nongnu.org; Mon, 07 Sep 2009 12:53:20 -0400 Received: from [199.232.76.173] (port=33368 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MkhSu-0007td-93 for qemu-devel@nongnu.org; Mon, 07 Sep 2009 12:53:16 -0400 Received: from mail-ew0-f223.google.com ([209.85.219.223]:42332) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MkhSt-0003Ga-QD for qemu-devel@nongnu.org; Mon, 07 Sep 2009 12:53:16 -0400 Received: by ewy23 with SMTP id 23so2449603ewy.8 for ; Mon, 07 Sep 2009 09:53:14 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1252339585-27797-4-git-send-email-kraxel@redhat.com> References: <1252339585-27797-1-git-send-email-kraxel@redhat.com> <1252339585-27797-4-git-send-email-kraxel@redhat.com> From: Blue Swirl Date: Mon, 7 Sep 2009 19:52:54 +0300 Message-ID: Subject: Re: [Qemu-devel] [PATCH 03/23] switch chardev to QemuOpts: infrastructure, null device Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: qemu-devel@nongnu.org On Mon, Sep 7, 2009 at 7:06 PM, Gerd Hoffmann wrote: > start switching chardevs to QemuOpts. =C2=A0This patch adds the > infrastructure and converts the null device. > +static struct { > + =C2=A0 =C2=A0const char *name; > + =C2=A0 =C2=A0CharDriverState *(*open)(QemuOpts *opts); > +} backend_table[] =3D { > + =C2=A0 =C2=A0{ .name =3D "null", =C2=A0 =C2=A0 =C2=A0.open =3D qemu_chr= _open_null }, > +}; 'const'?