Add our annotations according to QIDL documentation. Signed-off-by: Michael Roth <mdr...@linux.vnet.ibm.com> --- hw/mc146818rtc_state.h | 23 ++++++++++++----------- 1 files changed, 12 insertions(+), 11 deletions(-)
diff --git a/hw/mc146818rtc_state.h b/hw/mc146818rtc_state.h index f819e15..9347ee6 100644 --- a/hw/mc146818rtc_state.h +++ b/hw/mc146818rtc_state.h @@ -2,31 +2,32 @@ #define MC146818RTC_STATE_H #include "isa.h" +#include "qapi/qc.h" -typedef struct RTCState { - ISADevice dev; - MemoryRegion io; +qc_declaration typedef struct RTCState { + ISADevice _immutable dev; + MemoryRegion _immutable io; uint8_t cmos_data[128]; uint8_t cmos_index; struct tm current_tm; int32_t base_year; - qemu_irq irq; - qemu_irq sqw_irq; - int it_shift; + qemu_irq _immutable irq; + qemu_irq _immutable sqw_irq; + int32_t _immutable it_shift; /* periodic timer */ QEMUTimer *periodic_timer; int64_t next_periodic_time; /* second update */ int64_t next_second_time; - uint16_t irq_reinject_on_ack_count; + uint16_t _derived irq_reinject_on_ack_count; uint32_t irq_coalesced; uint32_t period; - QEMUTimer *coalesced_timer; + QEMUTimer _broken *coalesced_timer; QEMUTimer *second_timer; QEMUTimer *second_timer2; - Notifier clock_reset_notifier; - LostTickPolicy lost_tick_policy; - Notifier suspend_notifier; + Notifier _broken clock_reset_notifier; + LostTickPolicy _immutable lost_tick_policy; + Notifier _broken suspend_notifier; } RTCState; #endif /* !MC146818RTC_STATE_H */ -- 1.7.4.1