2008-09-15 17:51:35 +02:00
|
|
|
/*
|
|
|
|
* Compatibility for qemu-img/qemu-nbd
|
|
|
|
*
|
|
|
|
* Copyright IBM, Corp. 2008
|
|
|
|
*
|
|
|
|
* Authors:
|
|
|
|
* Anthony Liguori <aliguori@us.ibm.com>
|
|
|
|
*
|
|
|
|
* This work is licensed under the terms of the GNU GPL, version 2. See
|
|
|
|
* the COPYING file in the top-level directory.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "qemu-common.h"
|
2009-03-06 00:01:23 +01:00
|
|
|
#include "monitor.h"
|
2008-09-15 17:51:35 +02:00
|
|
|
#include "qemu-timer.h"
|
2009-07-20 19:19:25 +02:00
|
|
|
#include "qemu-log.h"
|
2008-09-15 17:51:35 +02:00
|
|
|
|
|
|
|
#include <sys/time.h>
|
|
|
|
|
|
|
|
QEMUClock *rt_clock;
|
2011-05-09 17:45:39 +02:00
|
|
|
QEMUClock *vm_clock;
|
2008-09-15 17:51:35 +02:00
|
|
|
|
2009-07-20 19:19:25 +02:00
|
|
|
FILE *logfile;
|
|
|
|
|
2008-09-15 17:51:35 +02:00
|
|
|
struct QEMUBH
|
|
|
|
{
|
|
|
|
QEMUBHFunc *cb;
|
|
|
|
void *opaque;
|
|
|
|
};
|
|
|
|
|
2008-10-08 21:50:24 +02:00
|
|
|
void qemu_service_io(void)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2010-03-22 10:29:04 +01:00
|
|
|
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)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2009-03-06 00:01:23 +01:00
|
|
|
void monitor_printf(Monitor *mon, const char *fmt, ...)
|
2008-09-15 17:51:35 +02:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2009-03-06 00:01:23 +01:00
|
|
|
void monitor_print_filename(Monitor *mon, const char *filename)
|
2008-09-15 17:51:35 +02:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2009-11-27 01:59:03 +01:00
|
|
|
void monitor_protocol_event(MonitorEvent event, QObject *data)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2008-09-15 17:51:35 +02:00
|
|
|
int qemu_set_fd_handler2(int fd,
|
2010-03-11 17:55:39 +01:00
|
|
|
IOCanReadHandler *fd_read_poll,
|
2008-09-15 17:51:35 +02:00
|
|
|
IOHandler *fd_read,
|
|
|
|
IOHandler *fd_write,
|
|
|
|
void *opaque)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
2011-02-22 18:42:31 +01:00
|
|
|
|
|
|
|
void qemu_notify_event(void)
|
|
|
|
{
|
|
|
|
}
|
2011-05-09 17:45:39 +02:00
|
|
|
|
|
|
|
QEMUTimer *qemu_new_timer(QEMUClock *clock, int scale,
|
|
|
|
QEMUTimerCB *cb, void *opaque)
|
|
|
|
{
|
2011-08-21 05:09:37 +02:00
|
|
|
return g_malloc(1);
|
2011-05-09 17:45:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void qemu_free_timer(QEMUTimer *ts)
|
|
|
|
{
|
2011-08-21 05:09:37 +02:00
|
|
|
g_free(ts);
|
2011-05-09 17:45:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
void qemu_del_timer(QEMUTimer *ts)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void qemu_mod_timer(QEMUTimer *ts, int64_t expire_time)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
int64_t qemu_get_clock_ns(QEMUClock *clock)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|