Paolo Bonzini <pbonz...@redhat.com> writes: > Il 26/07/2012 16:10, Anthony Liguori ha scritto: >> Yup. >> >> You could do: >> >> qom-list-types implements=TYPE_DEVICE >> >> And that will give you the various types. We'll need to add a: >> >> device-list-properties typename=FOO >> >> I've got a patch locally for that that I'm testing right now. Paolo and >> I never came to an agreement on how to do this generically for Objects >> but I'm happy with a device-specific interface for the short term. > > I don't like the idea of using object_new, but it obviously works at > least for now, so go ahead and call it qom-type-list-properties.
My patch doesn't use object_new() to do it. It uses static properties. I'm going to try to push static properties to object. If I can do that before 1.2, I'll rename this function to qom-type-list-properties. Regards, Anthony Liguori > > Paolo