Statistics
| Branch: | Revision:

root / qemu-tool.c @ 8c43a6f0

History | View | Annotate | Download (1.8 kB)

1
/*
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
 * Contributions after 2012-01-13 are licensed under the terms of the
13
 * GNU GPL, version 2 or (at your option) any later version.
14
 */
15

    
16
#include "qemu-common.h"
17
#include "monitor/monitor.h"
18
#include "qemu/timer.h"
19
#include "qemu/log.h"
20
#include "migration/migration.h"
21
#include "qemu/main-loop.h"
22
#include "sysemu/sysemu.h"
23
#include "qemu/sockets.h"
24
#include "slirp/libslirp.h"
25

    
26
#include <sys/time.h>
27

    
28
struct QEMUBH
29
{
30
    QEMUBHFunc *cb;
31
    void *opaque;
32
};
33

    
34
const char *qemu_get_vm_name(void)
35
{
36
    return NULL;
37
}
38

    
39
Monitor *cur_mon;
40

    
41
void vm_stop(RunState state)
42
{
43
    abort();
44
}
45

    
46
int monitor_cur_is_qmp(void)
47
{
48
    return 0;
49
}
50

    
51
void monitor_set_error(Monitor *mon, QError *qerror)
52
{
53
}
54

    
55
void monitor_vprintf(Monitor *mon, const char *fmt, va_list ap)
56
{
57
}
58

    
59
void monitor_printf(Monitor *mon, const char *fmt, ...)
60
{
61
}
62

    
63
void monitor_print_filename(Monitor *mon, const char *filename)
64
{
65
}
66

    
67
void monitor_protocol_event(MonitorEvent event, QObject *data)
68
{
69
}
70

    
71
int64_t cpu_get_clock(void)
72
{
73
    return get_clock_realtime();
74
}
75

    
76
int64_t cpu_get_icount(void)
77
{
78
    abort();
79
}
80

    
81
void qemu_mutex_lock_iothread(void)
82
{
83
}
84

    
85
void qemu_mutex_unlock_iothread(void)
86
{
87
}
88

    
89
int use_icount;
90

    
91
void qemu_clock_warp(QEMUClock *clock)
92
{
93
}
94

    
95
void slirp_update_timeout(uint32_t *timeout)
96
{
97
}
98

    
99
void slirp_select_fill(int *pnfds, fd_set *readfds,
100
                       fd_set *writefds, fd_set *xfds)
101
{
102
}
103

    
104
void slirp_select_poll(fd_set *readfds, fd_set *writefds,
105
                       fd_set *xfds, int select_error)
106
{
107
}
108

    
109
void migrate_add_blocker(Error *reason)
110
{
111
}
112

    
113
void migrate_del_blocker(Error *reason)
114
{
115
}