]> git.proxmox.com Git - qemu.git/blobdiff - qemu-tool.c
softfloat: Resolve type mismatches between declaration and implementation
[qemu.git] / qemu-tool.c
index bbce99fd8db1641878b6cdc6b166578a58930883..d45840de288e765f15dba4f37c272f990a3b661e 100644 (file)
@@ -13,9 +13,9 @@
 
 #include "qemu-common.h"
 #include "monitor.h"
-#include "sysemu.h"
 #include "qemu-timer.h"
 #include "qemu-log.h"
+#include "sysemu.h"
 
 #include <sys/time.h>
 
@@ -33,63 +33,35 @@ void qemu_service_io(void)
 {
 }
 
-void monitor_printf(Monitor *mon, const char *fmt, ...)
-{
-}
-
-void monitor_print_filename(Monitor *mon, const char *filename)
-{
-}
-
-void async_context_push(void)
-{
-}
-
-void async_context_pop(void)
-{
-}
+Monitor *cur_mon;
 
-int get_async_context_id(void)
+int monitor_cur_is_qmp(void)
 {
     return 0;
 }
 
-void monitor_protocol_event(MonitorEvent event, QObject *data)
+void monitor_set_error(Monitor *mon, QError *qerror)
 {
 }
 
-QEMUBH *qemu_bh_new(QEMUBHFunc *cb, void *opaque)
+void monitor_vprintf(Monitor *mon, const char *fmt, va_list ap)
 {
-    QEMUBH *bh;
-
-    bh = qemu_malloc(sizeof(*bh));
-    bh->cb = cb;
-    bh->opaque = opaque;
-
-    return bh;
-}
-
-int qemu_bh_poll(void)
-{
-    return 0;
 }
 
-void qemu_bh_schedule(QEMUBH *bh)
+void monitor_printf(Monitor *mon, const char *fmt, ...)
 {
-    bh->cb(bh->opaque);
 }
 
-void qemu_bh_cancel(QEMUBH *bh)
+void monitor_print_filename(Monitor *mon, const char *filename)
 {
 }
 
-void qemu_bh_delete(QEMUBH *bh)
+void monitor_protocol_event(MonitorEvent event, QObject *data)
 {
-    qemu_free(bh);
 }
 
 int qemu_set_fd_handler2(int fd,
-                         IOCanRWHandler *fd_read_poll,
+                         IOCanReadHandler *fd_read_poll,
                          IOHandler *fd_read,
                          IOHandler *fd_write,
                          void *opaque)
@@ -97,18 +69,6 @@ int qemu_set_fd_handler2(int fd,
     return 0;
 }
 
-int64_t qemu_get_clock(QEMUClock *clock)
+void qemu_notify_event(void)
 {
-    qemu_timeval tv;
-    qemu_gettimeofday(&tv);
-    return (tv.tv_sec * 1000000000LL + (tv.tv_usec * 1000)) / 1000000;
-}
-
-void qemu_error(const char *fmt, ...)
-{
-    va_list args;
-
-    va_start(args, fmt);
-    vfprintf(stderr, fmt, args);
-    va_end(args);
 }