summary refs log tree commit diff stats
path: root/include/qemu/timer.h
diff options
context:
space:
mode:
authorAlex Bligh <alex@alex.org.uk>2013-08-21 16:02:40 +0100
committerStefan Hajnoczi <stefanha@redhat.com>2013-08-22 15:58:05 +0200
commit58ac56b9ad53b006396523639bb7d7043edc56bf (patch)
tree20600ba62ca4b739981d78073ba127714ad77d9e /include/qemu/timer.h
parente93379b039030c68d85693a4bee2b76f814108d2 (diff)
downloadfocaccia-qemu-58ac56b9ad53b006396523639bb7d7043edc56bf.tar.gz
focaccia-qemu-58ac56b9ad53b006396523639bb7d7043edc56bf.zip
aio / timers: Rename qemu_new_clock and expose clock types
Rename qemu_new_clock to qemu_clock_new.

Expose clock types.

Signed-off-by: Alex Bligh <alex@alex.org.uk>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include/qemu/timer.h')
-rw-r--r--include/qemu/timer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/qemu/timer.h b/include/qemu/timer.h
index a9afdb3873..da43cbe19f 100644
--- a/include/qemu/timer.h
+++ b/include/qemu/timer.h
@@ -11,6 +11,10 @@
 #define SCALE_US 1000
 #define SCALE_NS 1
 
+#define QEMU_CLOCK_REALTIME 0
+#define QEMU_CLOCK_VIRTUAL  1
+#define QEMU_CLOCK_HOST     2
+
 typedef struct QEMUClock QEMUClock;
 typedef void QEMUTimerCB(void *opaque);