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

Reply via email to