From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=40923 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PhlHp-0002Vv-Rv for qemu-devel@nongnu.org; Tue, 25 Jan 2011 10:58:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PhlHn-0005Mc-IH for qemu-devel@nongnu.org; Tue, 25 Jan 2011 10:58:28 -0500 Received: from mx1.redhat.com ([209.132.183.28]:43105) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PhlHn-0005MD-8X for qemu-devel@nongnu.org; Tue, 25 Jan 2011 10:58:27 -0500 Date: Tue, 25 Jan 2011 17:58:19 +0200 From: Alon Levy Subject: Re: [Qemu-devel] [PATCH 0/3] add PROP_TYPE_ENUM and print_options callback Message-ID: <20110125155819.GA21640@playa.tlv.redhat.com> References: <1295348320-32099-1-git-send-email-alevy@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1295348320-32099-1-git-send-email-alevy@redhat.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Tue, Jan 18, 2011 at 12:58:37PM +0200, Alon Levy wrote: > This patchset allows a new property type called PROP_TYPE_ENUM, > I want to use it for the backend property in the ccid patches (will > send the patchset that uses it after this), libvirt is the ultimate > user. Ping. Anthony - this is required for the ccid patch I will sent (ok, a little predictive) since it makes choosing a backend for ccid-card-emulated simpler, all the string comparing is here. Looking at other devices this can be used: * ivshmem.c: role > > The first patch adds a print_options callback that works with this > property type to print the optional values. > > The second patch allows storing the name/value mapping in the property, > using a void ptr for later different uses. > > The third patch adds the property itself. > > Alon Levy (3): > qdev: add print_options callback > qdev: add data pointer to Property > qdev-properties: add PROP_TYPE_ENUM > > hw/qdev-properties.c | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++ > hw/qdev.c | 10 +++++++- > hw/qdev.h | 17 ++++++++++++++ > 3 files changed, 86 insertions(+), 1 deletions(-) > > -- > 1.7.3.4 > >