[PATCH 00/18] qapi/qom: QAPIfy object-add
Paolo Bonzini
pbonzini at redhat.com
Mon Nov 30 16:32:09 UTC 2020
On 30/11/20 16:30, Daniel P. Berrangé wrote:
> { 'struct': 'QCryptoSecretCommon',
> 'base': 'Object',
> 'state': { 'rawdata': '*uint8_t',
> 'rawlen': 'size_t' },
> 'data': { '*format': 'QCryptoSecretFormat',
> '*keyid': 'str',
> '*iv': 'str' } }
>
> { 'struct': 'QCryptoSecret',
> 'base': 'QCryptoSecretCommon',
> 'data': { '*data': 'str',
> '*file': 'str' } }
No, please don't do this. I want to keep writing C code, not a weird
JSON syntax for C.
I'd much rather have a FooOptions field in my struct so that I can just
do visit_FooOptions in the UserCreatable.complete() method, that's feasible.
Paolo
More information about the libvir-list
mailing list