]> git.proxmox.com Git - mirror_qemu.git/commit
Generalize QOM publishing of date and time from mc146818rtc.c
authorDavid Gibson <david@gibson.dropbear.id.au>
Fri, 6 Feb 2015 03:55:45 +0000 (14:55 +1100)
committerAlexander Graf <agraf@suse.de>
Mon, 9 Mar 2015 13:59:55 +0000 (14:59 +0100)
commit8e099d14f5233f330c4a6f03ff655219cd789c8f
tree355f72ea6b80b702f968c72677e36dcfa5bf967c
parentb194df478ae7607d93b47a8307e623c9f9f2b3ab
Generalize QOM publishing of date and time from mc146818rtc.c

The mc146818rtc driver exposes the current RTC date and time via the "date"
property in QOM (which is also aliased to the machine's "rtc-time"
property).  Currently it uses a custom visitor function rtc_get_date to
do this.

This patch introduces new helpers to the QOM core to expose struct tm
valued properties via a getter function, so that this functionality can be
more easily duplicated in other RTC implementations.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/timer/mc146818rtc.c
include/qom/object.h
qom/object.c