summaryrefslogtreecommitdiffstats
path: root/qemu-timer.h
authorPaolo Bonzini <[email protected]>2010-03-10 10:38:55 (GMT)
committer Anthony Liguori <[email protected]>2010-03-17 16:16:15 (GMT)
commitdb1a49726c3c6cbe9cbca5b118e80c0fec65e8dd (patch) (side-by-side diff)
treedc4f42c9d7476e43f8a0c5547e31c193b71fbe96 /qemu-timer.h
parentd6f4ade214a9f74dca9495b83a24ff9c113e4f9a (diff)
downloadqemu-kvm-db1a49726c3c6cbe9cbca5b118e80c0fec65e8dd.zip
qemu-kvm-db1a49726c3c6cbe9cbca5b118e80c0fec65e8dd.tar.gz
qemu-kvm-db1a49726c3c6cbe9cbca5b118e80c0fec65e8dd.tar.bz2
split out qemu-timer.c
Signed-off-by: Paolo Bonzini <[email protected]> Signed-off-by: Anthony Liguori <[email protected]>
Diffstat (limited to 'qemu-timer.h') (more/less context) (ignore whitespace changes)
-rw-r--r--qemu-timer.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/qemu-timer.h b/qemu-timer.h
index c17b4e6..fca11eb 100644
--- a/qemu-timer.h
+++ b/qemu-timer.h
@@ -26,6 +26,7 @@ extern QEMUClock *host_clock;
int64_t qemu_get_clock(QEMUClock *clock);
int64_t qemu_get_clock_ns(QEMUClock *clock);
+void qemu_clock_enable(QEMUClock *clock, int enabled);
QEMUTimer *qemu_new_timer(QEMUClock *clock, QEMUTimerCB *cb, void *opaque);
void qemu_free_timer(QEMUTimer *ts);
@@ -34,11 +35,22 @@ void qemu_mod_timer(QEMUTimer *ts, int64_t expire_time);
int qemu_timer_pending(QEMUTimer *ts);
int qemu_timer_expired(QEMUTimer *timer_head, int64_t current_time);
+void qemu_run_all_timers(void);
+int qemu_alarm_pending(void);
+int64_t qemu_next_deadline(void);
+void configure_alarms(char const *opt);
+void configure_icount(const char *option);
+int qemu_calculate_timeout(void);
+void init_clocks(void);
+int init_timer_alarm(void);
+void quit_timers(void);
+
static inline int64_t get_ticks_per_sec(void)
{
return 1000000000LL;
}
+
void qemu_get_timer(QEMUFile *f, QEMUTimer *ts);
void qemu_put_timer(QEMUFile *f, QEMUTimer *ts);