]> git.proxmox.com Git - qemu.git/commit - qmp.c
qapi: convert add_client
authorLuiz Capitulino <lcapitulino@redhat.com>
Thu, 13 Sep 2012 19:52:20 +0000 (16:52 -0300)
committerLuiz Capitulino <lcapitulino@redhat.com>
Wed, 26 Sep 2012 15:42:19 +0000 (12:42 -0300)
commitb224e5e2162a767dd56dbc366f796fbe45ca5baa
treef57612bc208639b5e42443a0c3db3995866775c8
parenta9940fc4cba811adfb296fe07b247ee707265f90
qapi: convert add_client

Also fixes a few issues while there:

 1. The fd returned by monitor_get_fd() leaks in most error conditions
 2. monitor_get_fd() return value is not checked. Best case we get
    an error that is not correctly reported, worse case one of the
    functions using the fd (with value of -1) will explode
 3. A few error conditions aren't reported
 4. We now "use up" @fdname always.  Before, it was left alone for
    invalid @protocol

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
monitor.c
qapi-schema.json
qmp-commands.hx
qmp.c