diff options
| author | Luiz Capitulino | 2012-04-18 22:34:15 +0200 |
|---|---|---|
| committer | Luiz Capitulino | 2012-06-04 18:49:35 +0200 |
| commit | 928059a37b8e1f152962431fb846f39597b63c36 (patch) | |
| tree | 4cd8ab47ebd78c1756406e1dde5075609beb301c /linux-user/linux_loop.h | |
| parent | net: net_client_init(): use error_set() (diff) | |
| download | qemu-928059a37b8e1f152962431fb846f39597b63c36.tar.gz qemu-928059a37b8e1f152962431fb846f39597b63c36.tar.xz qemu-928059a37b8e1f152962431fb846f39597b63c36.zip | |
qapi: convert netdev_add
This is not a full QAPI conversion, but an intermediate step.
In essence, do_netdev_add() is split into three functions:
1. netdev_add(): performs the actual work. This function is fully
converted to Error (thus, it's "qapi-friendly")
2. qmp_netdev_add(): the QMP front-end for netdev_add(). This is
coded by hand and not auto-generated (gen=no in the schema). The
reason for this it's a lot easier and simpler to with QemuOpts
this way
3. hmp_netdev_add(): HMP front-end.
This design was suggested by Paolo Bonzini.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Reviewed-By: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'linux-user/linux_loop.h')
0 files changed, 0 insertions, 0 deletions
