]> Git Repo - qemu.git/blobdiff - qemu-tool.c
block: bdrv_has_zero_init
[qemu.git] / qemu-tool.c
index 63e205675c966887c04daf4bb7243a5cc6d08bba..b39af86e0105fc165e03715ecfc3ff6ed63531b3 100644 (file)
  */
 
 #include "qemu-common.h"
-#include "console.h"
-#include "sysemu.h"
+#include "monitor.h"
 #include "qemu-timer.h"
+#include "qemu-log.h"
 
 #include <sys/time.h>
 
 QEMUClock *rt_clock;
 
+FILE *logfile;
+
 struct QEMUBH
 {
     QEMUBHFunc *cb;
     void *opaque;
 };
 
-void term_printf(const char *fmt, ...)
+void qemu_service_io(void)
+{
+}
+
+Monitor *cur_mon;
+
+int monitor_cur_is_qmp(void)
+{
+    return 0;
+}
+
+void monitor_set_error(Monitor *mon, QError *qerror)
+{
+}
+
+void monitor_vprintf(Monitor *mon, const char *fmt, va_list ap)
+{
+}
+
+void monitor_printf(Monitor *mon, const char *fmt, ...)
+{
+}
+
+void monitor_print_filename(Monitor *mon, const char *filename)
+{
+}
+
+void async_context_push(void)
 {
 }
 
-void term_print_filename(const char *filename)
+void async_context_pop(void)
+{
+}
+
+int get_async_context_id(void)
+{
+    return 0;
+}
+
+void monitor_protocol_event(MonitorEvent event, QObject *data)
 {
 }
 
@@ -39,10 +77,8 @@ QEMUBH *qemu_bh_new(QEMUBHFunc *cb, void *opaque)
     QEMUBH *bh;
 
     bh = qemu_malloc(sizeof(*bh));
-    if (bh) {
-        bh->cb = cb;
-        bh->opaque = opaque;
-    }
+    bh->cb = cb;
+    bh->opaque = opaque;
 
     return bh;
 }
@@ -67,7 +103,7 @@ void qemu_bh_delete(QEMUBH *bh)
 }
 
 int qemu_set_fd_handler2(int fd,
-                         IOCanRWHandler *fd_read_poll,
+                         IOCanReadHandler *fd_read_poll,
                          IOHandler *fd_read,
                          IOHandler *fd_write,
                          void *opaque)
@@ -77,7 +113,7 @@ int qemu_set_fd_handler2(int fd,
 
 int64_t qemu_get_clock(QEMUClock *clock)
 {
-    struct timeval tv;
-    gettimeofday(&tv, NULL);
+    qemu_timeval tv;
+    qemu_gettimeofday(&tv);
     return (tv.tv_sec * 1000000000LL + (tv.tv_usec * 1000)) / 1000000;
 }
This page took 0.0213 seconds and 4 git commands to generate.