Monitor: Drop QMP documentation from code

Previous commit added QMP documentation to the qemu-monitor.hx
file, it's is a copy of this information.

While it's good to keep it near code, maintaining two copies of
the same information is too hard and has little benefit as we
don't expect client writers to consult the code to find how to
use a QMP command.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
Luiz Capitulino 2010-05-31 14:43:32 -03:00 committed by Anthony Liguori
parent b40292e711
commit 637503d122
9 changed files with 0 additions and 368 deletions

22
net.c
View file

@ -1194,18 +1194,6 @@ void net_host_device_remove(Monitor *mon, const QDict *qdict)
qemu_del_vlan_client(vc);
}
/**
* do_netdev_add(): Add a host network device
*
* Argument qdict contains
* - "type": the device type, "tap", "user", ...
* - "id": the device's ID (must be unique)
* - device options
*
* Example:
*
* { "type": "user", "id": "netdev1", "hostname": "a-guest" }
*/
int do_netdev_add(Monitor *mon, const QDict *qdict, QObject **ret_data)
{
QemuOpts *opts;
@ -1220,16 +1208,6 @@ int do_netdev_add(Monitor *mon, const QDict *qdict, QObject **ret_data)
return res;
}
/**
* do_netdev_del(): Delete a host network device
*
* Argument qdict contains
* - "id": the device's ID
*
* Example:
*
* { "id": "netdev1" }
*/
int do_netdev_del(Monitor *mon, const QDict *qdict, QObject **ret_data)
{
const char *id = qdict_get_str(qdict, "id");