On 10/20/2016 10:24 AM, Peter Krempa wrote: > Call 'query-qmp-schema' and store the returned types in a hash table > keyed by the 'name' field so that the capabilities code can traverse it. > --- > src/qemu/qemu_monitor.c | 11 ++++++++ > src/qemu/qemu_monitor.h | 2 ++ > src/qemu/qemu_monitor_json.c | 67 > ++++++++++++++++++++++++++++++++++++++++++++ > src/qemu/qemu_monitor_json.h | 3 ++ > 4 files changed, 83 insertions(+)
Does qemu guarantee that the name field alone is unique? /me rereads qemu/docs/qapi-code-gen.txt "guaranteed that there will be no collisions between type, command, and event names" Okay. I was a bit worried that using name alone as the key would be insufficient, and that you'd need a name/type pair. But it looks like you should be fine, because qemu promises not to break things. -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
-- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list