Re: [PATCH 10/11] qapi/commands: Simplify command registry generation

2021-01-14 Thread John Snow
On 12/18/20 3:54 PM, Markus Armbruster wrote: QAPISchemaGenCommandVisitor.visit_command() needs to generate the marshalling function into the current module, and also generate its registration into the ./init system module. The latter is done somewhat awkwardly: .__init__() creates a QAPIGenCCod

[PATCH 10/11] qapi/commands: Simplify command registry generation

2020-12-18 Thread Markus Armbruster
QAPISchemaGenCommandVisitor.visit_command() needs to generate the marshalling function into the current module, and also generate its registration into the ./init system module. The latter is done somewhat awkwardly: .__init__() creates a QAPIGenCCode that will not be written out, each .visit_comm