mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
qapi event: convert RTC_CHANGE
This patch also eliminates build time warning caused by no caller of monitor_qapi_event_throttle(). Signed-off-by: Wenchao Xia <wenchaoqemu@gmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
This commit is contained in:
parent
7a906f7ffb
commit
e010ad8f1e
7 changed files with 20 additions and 30 deletions
9
vl.c
9
vl.c
|
@ -788,15 +788,6 @@ 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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue