Statistics
| Branch: | Revision:

root / qemu-tool.c @ eeacee4d

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.h"
18
#include "qemu-timer.h"
19
#include "qemu-log.h"
20
#include "migration.h"
21
#include "main-loop.h"
22
#include "qemu_socket.h"
23
#include "slirp/libslirp.h"
24

    
25
#include <sys/time.h>
26

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

    
33
Monitor *cur_mon;
34

    
35
int monitor_cur_is_qmp(void)
36
{
37
    return 0;
38
}
39

    
40
void monitor_set_error(Monitor *mon, QError *qerror)
41
{
42
}
43

    
44
void monitor_vprintf(Monitor *mon, const char *fmt, va_list ap)
45
{
46
}
47

    
48
void monitor_printf(Monitor *mon, const char *fmt, ...)
49
{
50
}
51

    
52
void monitor_print_filename(Monitor *mon, const char *filename)
53
{
54
}
55

    
56
void monitor_protocol_event(MonitorEvent event, QObject *data)
57
{
58
}
59

    
60
int64_t cpu_get_clock(void)
61
{
62
    return qemu_get_clock_ns(rt_clock);
63
}
64

    
65
int64_t cpu_get_icount(void)
66
{
67
    abort();
68
}
69

    
70
void qemu_mutex_lock_iothread(void)
71
{
72
}
73

    
74
void qemu_mutex_unlock_iothread(void)
75
{
76
}
77

    
78
int use_icount;
79

    
80
void qemu_clock_warp(QEMUClock *clock)
81
{
82
}
83

    
84
int qemu_init_main_loop(void)
85
{
86
    init_clocks();
87
    init_timer_alarm();
88
    return main_loop_init();
89
}
90

    
91
void slirp_update_timeout(uint32_t *timeout)
92
{
93
}
94

    
95
void slirp_select_fill(int *pnfds, fd_set *readfds,
96
                       fd_set *writefds, fd_set *xfds)
97
{
98
}
99

    
100
void slirp_select_poll(fd_set *readfds, fd_set *writefds,
101
                       fd_set *xfds, int select_error)
102
{
103
}
104

    
105
void migrate_add_blocker(Error *reason)
106
{
107
}
108

    
109
void migrate_del_blocker(Error *reason)
110
{
111
}