Signed-off-by: Michael Roth <mdr...@linux.vnet.ibm.com> --- qidl.h | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/qidl.h b/qidl.h index 8d8dd7b..c80ccf7 100644 --- a/qidl.h +++ b/qidl.h @@ -42,6 +42,7 @@ #define QIDL(...) QIDL(__VA_ARGS__) #define QIDL_START(name, ...) QIDL_START(name, ##__VA_ARGS__) +#define QIDL_IMMUTABLE_TYPES(...) QIDL_IMMUTABLE_TYPES(__VA_ARGS__) #else @@ -50,6 +51,7 @@ QIDL_DATA_DECLARE(name) \ extern QIDLData##name qidl_data_##name; \ void visit_type_##name(Visitor *, struct name **, const char *, Error **); +#define QIDL_IMMUTABLE_TYPES(...) #ifdef QIDL_ENABLED #define QIDL_START(name, ...) \ QIDL_DATA_DECLARE(name) \ @@ -159,4 +161,8 @@ #define QIDL_PROPERTIES(name) \ qidl_data_##name.properties +QIDL_IMMUTABLE_TYPES(Notifier, MemoryRegion, MemoryRegionIoeventfd, \ + DeviceState, BusState, DMAContext, qemu_irq, \ + SysBusDevice) + #endif -- 1.7.9.5