Files
qemu/include/qapi/qapi-type-info.h
Marc-André Lureau eb9f44eeff qapi: add QAPITypeInfo struct definition
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.

The fields are populated in following commits.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-ID: <20261101201717.3911097-8-armbru@redhat.com>
2026-11-02 19:35:20 +01:00

26 lines
653 B
C

/*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef QAPI_TYPE_INFO_H
#define QAPI_TYPE_INFO_H
#include "qapi/util.h"
/**
* QAPITypeInfo - QAPI type metadata
*
* @name: QAPI type name (e.g. "str", "OnOffAuto", "int32List").
* QOM uses this as the property type string.
* @masked_name: Name of the type in the output of query-qmp-schema,
* assigned by scripts/qapi code generator (e.g. "368").
* @lookup: QEnumLookup for this type, or NULL for non-enum types.
*/
typedef struct QAPITypeInfo {
const char *name;
const char *masked_name;
const QEnumLookup *lookup;
} QAPITypeInfo;
#endif /* QAPI_TYPE_INFO_H */