Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qapi.py: Allow top-level type reference for command definitions
If 'data' for a command definition isn't a dict, but a string, it is taken as a (struct) type name and the fields of this struct are directly used as parameters. This is useful for transactionable commands that can use the same type definition for both the transaction action and the arguments of the standalone command. Signed-off-by: Kevin Wolf <[email protected]> Reviewed-by: Michael Roth <[email protected]> Signed-off-by: Luiz Capitulino <[email protected]>
- Loading branch information