qemu/qemu-tool.c
<<
>>
Prefs
   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
  27struct QEMUBH
  28{
  29    QEMUBHFunc *cb;
  30    void *opaque;
  31};
  32
  33const char *qemu_get_vm_name(void)
  34{
  35    return NULL;
  36}
  37
  38Monitor *cur_mon;
  39
  40int monitor_cur_is_qmp(void)
  41{
  42    return 0;
  43}
  44
  45void monitor_set_error(Monitor *mon, QError *qerror)
  46{
  47}
  48
  49void monitor_vprintf(Monitor *mon, const char *fmt, va_list ap)
  50{
  51}
  52
  53void monitor_printf(Monitor *mon, const char *fmt, ...)
  54{
  55}
  56
  57void monitor_print_filename(Monitor *mon, const char *filename)
  58{
  59}
  60
  61void monitor_protocol_event(MonitorEvent event, QObject *data)
  62{
  63}
  64
  65int monitor_fdset_get_fd(int64_t fdset_id, int flags)
  66{
  67    return -1;
  68}
  69
  70int monitor_fdset_dup_fd_add(int64_t fdset_id, int dup_fd)
  71{
  72    return -1;
  73}
  74
  75int monitor_fdset_dup_fd_remove(int dup_fd)
  76{
  77    return -1;
  78}
  79
  80int monitor_fdset_dup_fd_find(int dup_fd)
  81{
  82    return -1;
  83}
  84
  85int64_t cpu_get_clock(void)
  86{
  87    return qemu_get_clock_ns(rt_clock);
  88}
  89
  90int64_t cpu_get_icount(void)
  91{
  92    abort();
  93}
  94
  95void qemu_mutex_lock_iothread(void)
  96{
  97}
  98
  99void qemu_mutex_unlock_iothread(void)
 100{
 101}
 102
 103int use_icount;
 104
 105void qemu_clock_warp(QEMUClock *clock)
 106{
 107}
 108
 109int qemu_init_main_loop(void)
 110{
 111    init_clocks();
 112    init_timer_alarm();
 113    return main_loop_init();
 114}
 115
 116void slirp_update_timeout(uint32_t *timeout)
 117{
 118}
 119
 120void slirp_select_fill(int *pnfds, fd_set *readfds,
 121                       fd_set *writefds, fd_set *xfds)
 122{
 123}
 124
 125void slirp_select_poll(fd_set *readfds, fd_set *writefds,
 126                       fd_set *xfds, int select_error)
 127{
 128}
 129
 130void migrate_add_blocker(Error *reason)
 131{
 132}
 133
 134void migrate_del_blocker(Error *reason)
 135{
 136}
 137