qemu/stubs/usb-dev-stub.c
<<
>>
Prefs
   1/*
   2 * QEMU USB device emulation stubs
   3 *
   4 * Copyright (C) 2021 Philippe Mathieu-Daudé <f4bug@amsat.org>
   5 *
   6 * SPDX-License-Identifier: GPL-2.0-or-later
   7 */
   8
   9#include "qemu/osdep.h"
  10#include "qemu/error-report.h"
  11#include "qapi/error.h"
  12#include "qapi/qapi-commands-machine.h"
  13#include "sysemu/sysemu.h"
  14#include "monitor/monitor.h"
  15#include "hw/usb.h"
  16
  17USBDevice *usbdevice_create(const char *driver)
  18{
  19    error_report("Support for USB devices not built-in");
  20
  21    return NULL;
  22}
  23
  24HumanReadableText *qmp_x_query_usb(Error **errp)
  25{
  26    error_setg(errp, "Support for USB devices not built-in");
  27    return NULL;
  28}
  29
  30void hmp_info_usb(Monitor *mon, const QDict *qdict)
  31{
  32    monitor_printf(mon, "Support for USB devices not built-in\n");
  33}
  34