From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:48339) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sbi8j-0001QM-Jq for qemu-devel@nongnu.org; Mon, 04 Jun 2012 21:00:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sbi8h-0002sP-AS for qemu-devel@nongnu.org; Mon, 04 Jun 2012 21:00:53 -0400 Received: from mail-pz0-f45.google.com ([209.85.210.45]:34174) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sbi8g-0002oi-HB for qemu-devel@nongnu.org; Mon, 04 Jun 2012 21:00:50 -0400 Received: by mail-pz0-f45.google.com with SMTP id v2so7118187dad.4 for ; Mon, 04 Jun 2012 18:00:49 -0700 (PDT) Sender: fluxion From: Michael Roth Date: Mon, 4 Jun 2012 20:00:10 -0500 Message-Id: <1338858018-17189-10-git-send-email-mdroth@linux.vnet.ibm.com> In-Reply-To: <1338858018-17189-1-git-send-email-mdroth@linux.vnet.ibm.com> References: <1338858018-17189-1-git-send-email-mdroth@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 09/17] rtc: add qc annotations List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aliguori@us.ibm.com, quintela@redhat.com, owasserm@redhat.com, yamahata@valinux.co.jp, pbonzini@redhat.com, akong@redhat.com, afaerber@suse.de Add our annotations according to QIDL documentation. Signed-off-by: Michael Roth --- 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