OSDN Git Service

qapi: Consolidate QMP input visitor creation
authorEric Blake <eblake@redhat.com>
Thu, 28 Apr 2016 21:45:13 +0000 (15:45 -0600)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 12 May 2016 07:47:54 +0000 (09:47 +0200)
commitfc471c18d5d2ec713d5a019f9530398675494bc8
tree1fb03415f178be63e207465cff081d9968261787
parentb471d012e5d7bec1d2272738141e121b5581fcdf
qapi: Consolidate QMP input visitor creation

Rather than having two separate ways to create a QMP input
visitor, where the safer approach has the more verbose name,
it is better to consolidate things into a single function
where the caller must explicitly choose whether to be strict
or to ignore excess input.  This patch is the strictly
mechanical conversion; the next patch will then audit which
uses can be made stricter.

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <1461879932-9020-6-git-send-email-eblake@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
12 files changed:
docs/qapi-code-gen.txt
include/qapi/qmp-input-visitor.h
qapi/qmp-input-visitor.c
qmp.c
qom/qom-qobject.c
replay/replay-input.c
scripts/qapi-commands.py
tests/test-qmp-commands.c
tests/test-qmp-input-strict.c
tests/test-qmp-input-visitor.c
tests/test-visitor-serialization.c
util/qemu-sockets.c