blob: 5df72797452e81b2e4e7283f3032ac57b98d40da [file] [log] [blame]
aliguori03ff3ca2008-09-15 15:51:35 +00001/*
2 * Compatibility for qemu-img/qemu-nbd
3 *
4 * Copyright IBM, Corp. 2008
5 *
6 * Authors:
7 * Anthony Liguori <aliguori@us.ibm.com>
8 *
9 * This work is licensed under the terms of the GNU GPL, version 2. See
10 * the COPYING file in the top-level directory.
11 *
12 */
13
14#include "qemu-common.h"
aliguori376253e2009-03-05 23:01:23 +000015#include "monitor.h"
aliguori03ff3ca2008-09-15 15:51:35 +000016#include "qemu-timer.h"
Blue Swirl0bf9e312009-07-20 17:19:25 +000017#include "qemu-log.h"
Anthony Liguori1ed520c2011-11-14 15:09:47 -060018#include "migration.h"
aliguori03ff3ca2008-09-15 15:51:35 +000019
20#include <sys/time.h>
21
22QEMUClock *rt_clock;
Stefan Hajnoczi5fc09ca2011-05-09 16:45:39 +010023QEMUClock *vm_clock;
aliguori03ff3ca2008-09-15 15:51:35 +000024
Blue Swirl0bf9e312009-07-20 17:19:25 +000025FILE *logfile;
26
aliguori03ff3ca2008-09-15 15:51:35 +000027struct QEMUBH
28{
29 QEMUBHFunc *cb;
30 void *opaque;
31};
32
Markus Armbruster526f0ac2010-03-22 10:29:04 +010033Monitor *cur_mon;
34
35int monitor_cur_is_qmp(void)
36{
37 return 0;
38}
39
40void monitor_set_error(Monitor *mon, QError *qerror)
41{
42}
43
44void monitor_vprintf(Monitor *mon, const char *fmt, va_list ap)
45{
46}
47
aliguori376253e2009-03-05 23:01:23 +000048void monitor_printf(Monitor *mon, const char *fmt, ...)
aliguori03ff3ca2008-09-15 15:51:35 +000049{
50}
51
aliguori376253e2009-03-05 23:01:23 +000052void monitor_print_filename(Monitor *mon, const char *filename)
aliguori03ff3ca2008-09-15 15:51:35 +000053{
54}
55
Luiz Capitulino0d1ea872009-11-26 22:59:03 -020056void monitor_protocol_event(MonitorEvent event, QObject *data)
57{
58}
59
aliguori03ff3ca2008-09-15 15:51:35 +000060int qemu_set_fd_handler2(int fd,
Juan Quintela7b27a762010-03-11 17:55:39 +010061 IOCanReadHandler *fd_read_poll,
aliguori03ff3ca2008-09-15 15:51:35 +000062 IOHandler *fd_read,
63 IOHandler *fd_write,
64 void *opaque)
65{
66 return 0;
67}
Kevin Wolf4e59b542011-02-22 18:42:31 +010068
69void qemu_notify_event(void)
70{
71}
Stefan Hajnoczi5fc09ca2011-05-09 16:45:39 +010072
73QEMUTimer *qemu_new_timer(QEMUClock *clock, int scale,
74 QEMUTimerCB *cb, void *opaque)
75{
Anthony Liguori7267c092011-08-20 22:09:37 -050076 return g_malloc(1);
Stefan Hajnoczi5fc09ca2011-05-09 16:45:39 +010077}
78
79void qemu_free_timer(QEMUTimer *ts)
80{
Anthony Liguori7267c092011-08-20 22:09:37 -050081 g_free(ts);
Stefan Hajnoczi5fc09ca2011-05-09 16:45:39 +010082}
83
84void qemu_del_timer(QEMUTimer *ts)
85{
86}
87
88void qemu_mod_timer(QEMUTimer *ts, int64_t expire_time)
89{
90}
91
92int64_t qemu_get_clock_ns(QEMUClock *clock)
93{
94 return 0;
95}
Anthony Liguori1ed520c2011-11-14 15:09:47 -060096
97void migrate_add_blocker(Error *reason)
98{
99}
100
101void migrate_del_blocker(Error *reason)
102{
103}