mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
fc30920731
This is a counterpart to the HMP "info usb" command. It is being added with an "x-" prefix because this QMP command is intended as an adhoc debugging tool and will thus not be modelled in QAPI as fully structured data, nor will it have long term guaranteed stability. The existing HMP command is rewritten to call the QMP command. Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
33 lines
739 B
C
33 lines
739 B
C
/*
|
|
* QEMU USB device emulation stubs
|
|
*
|
|
* Copyright (C) 2021 Philippe Mathieu-Daudé <f4bug@amsat.org>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#include "qemu/osdep.h"
|
|
#include "qemu/error-report.h"
|
|
#include "qapi/error.h"
|
|
#include "qapi/qapi-commands-machine.h"
|
|
#include "sysemu/sysemu.h"
|
|
#include "monitor/monitor.h"
|
|
#include "hw/usb.h"
|
|
|
|
USBDevice *usbdevice_create(const char *driver)
|
|
{
|
|
error_report("Support for USB devices not built-in");
|
|
|
|
return NULL;
|
|
}
|
|
|
|
HumanReadableText *qmp_x_query_usb(Error **errp)
|
|
{
|
|
error_setg(errp, "Support for USB devices not built-in");
|
|
return NULL;
|
|
}
|
|
|
|
void hmp_info_usb(Monitor *mon, const QDict *qdict)
|
|
{
|
|
monitor_printf(mon, "Support for USB devices not built-in\n");
|
|
}
|