On 11/7/18 4:23 PM, Marc-André Lureau wrote:

+##
+# @QAuthZListRuleListHack:
+#
+# Not exposed via QMP; hack to generate QAuthZListRuleList
+# for use internally by the code.

Well, this will probably end in the documentation (it's already in the
.json, which is one source of documentation ;).

What about adding a 'gen-list' field, or a 'pragma' listing the
structs that should have list code generated?

We've used this hack several times in the past, but indeed there might be nicer design approaches to consider now that we have pragma listings. But I don't see that as holding up this series.

--
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org

Reply via email to