|
From: | Gerd Hoffmann |
Subject: | [Qemu-devel] Re: [PATCH 1/2] Introduce CharDriverState qdev property type |
Date: | Tue, 21 Jul 2009 17:34:54 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1b3pre) Gecko/20090513 Fedora/3.0-2.3.beta2.fc11 Lightning/1.0pre Thunderbird/3.0b2 |
On 07/21/09 17:23, Anthony Liguori wrote:
Gerd Hoffmann wrote:Would you have a property type that was basically a char driver state name?Yes. Same for drives and others. A generic string property should do I think.Couldn't a struct pointer be used for that though? It can still be exposed as a string to the user.
Hmm, didn't think about that possibility. Somehow makes sense as it would move the lookup-by-name into generic code (i.e. qemu_prop_chardev->parse).
Not sure what qdev_prop_set_chrdev() should accept then. struct pointer? string?
cheers, Gerd
[Prev in Thread] | Current Thread | [Next in Thread] |