diff options
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -1492,6 +1492,15 @@ int qemu_timedate_diff(struct tm *tm) return seconds - time(NULL); } +void rtc_change_mon_event(struct tm *tm) +{ + QObject *data; + + data = qobject_from_jsonf("{ 'offset': %d }", qemu_timedate_diff(tm)); + monitor_protocol_event(QEVENT_RTC_CHANGE, data); + qobject_decref(data); +} + static void configure_rtc_date_offset(const char *startdate, int legacy) { time_t rtc_start_date; |