From patchwork Thu Nov 1 13:04:04 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [02/29] qidl: qidl.h, mark common immutable types as q_immutable by default Date: Thu, 01 Nov 2012 03:04:04 -0000 From: Michael Roth X-Patchwork-Id: 196256 Message-Id: <1351775071-7644-3-git-send-email-mdroth@linux.vnet.ibm.com> To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, peter.maydell@linaro.org, aliguori@us.ibm.com, quintela@redhat.com, blauwirbel@gmail.com, pbonzini@redhat.com Signed-off-by: Michael Roth --- 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