Introduce a minimal struct that pairs a QAPI type's internal name with its "masked" introspection name. Generated constants of this type will let QOM property registration carry a reliable reference to the QAPI schema and possibly other associated data.
Signed-off-by: Marc-André Lureau <[email protected]> --- include/qapi/qapi-type-info.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/include/qapi/qapi-type-info.h b/include/qapi/qapi-type-info.h new file mode 100644 index 00000000000..53b4732297d --- /dev/null +++ b/include/qapi/qapi-type-info.h @@ -0,0 +1,19 @@ +/* + * QAPITypeInfo — associates a QOM property with its QAPI schema type. + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#ifndef QAPI_TYPE_INFO_H +#define QAPI_TYPE_INFO_H + +#include "qapi/util.h" + +typedef struct QAPITypeInfo { + const char *name; + const char *schema_name; + const QEnumLookup *lookup; + const struct QAPITypeInfo *list; +} QAPITypeInfo; + +#endif /* QAPI_TYPE_INFO_H */ -- 2.54.0
