summary refs log tree commit diff stats
path: root/include/qom/object.h
diff options
context:
space:
mode:
authorPeter Xu <peterx@redhat.com>2024-11-21 14:21:50 -0500
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2024-12-20 17:44:55 +0100
commite469b331cd1bb2a3d4a0b02b37390fd79947e225 (patch)
tree7d8a212bab577d819dc7e39ea14dc7300382cb15 /include/qom/object.h
parent678bf8f22a2cbbaea465d1ce181e4367cb9760ae (diff)
downloadfocaccia-qemu-e469b331cd1bb2a3d4a0b02b37390fd79947e225.tar.gz
focaccia-qemu-e469b331cd1bb2a3d4a0b02b37390fd79947e225.zip
qom: Add TYPE_CONTAINER macro
Provide a macro for the container type across QEMU source tree, rather than
hard code it every time.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-ID: <20241121192202.4155849-2-peterx@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Diffstat (limited to 'include/qom/object.h')
-rw-r--r--include/qom/object.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/qom/object.h b/include/qom/object.h
index a201c9712a..de02e16817 100644
--- a/include/qom/object.h
+++ b/include/qom/object.h
@@ -26,6 +26,7 @@ typedef struct InterfaceClass InterfaceClass;
 typedef struct InterfaceInfo InterfaceInfo;
 
 #define TYPE_OBJECT "object"
+#define TYPE_CONTAINER "container"
 
 typedef struct ObjectProperty ObjectProperty;