Eric Blake 0920a17199 qapi: Share test_init code in test-qmp-input*
Rather than duplicate the body of two functions just to
decide between qobject_from_jsonv() and qobject_from_json(),
exploit the fact that qobject_from_jsonv() intentionally
takes 'va_list *' instead of the more common 'va_list', and
that qobject_from_json() just calls qobject_from_jsonv(,NULL).
For each file, our two existing init functions then become
thin wrappers around a new internal function, and future
updates to initialization don't have to be duplicated.

Suggested-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <1446791754-23823-5-git-send-email-eblake@redhat.com>
[Two old comment typos fixed]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
2015-11-09 16:45:05 +01:00
..
2015-09-11 10:45:43 +03:00
2015-11-06 15:42:38 +03:00
2015-10-09 15:25:57 +02:00
2015-10-16 11:14:53 +01:00
2015-10-23 18:18:23 +02:00
2015-10-19 15:26:53 +02:00
2015-10-09 15:25:57 +02:00
2015-10-26 10:19:53 +01:00
2015-10-24 18:03:18 +02:00
2015-10-24 18:03:18 +02:00
2015-11-02 08:30:28 +01:00
2015-09-25 14:53:29 +02:00
2015-11-02 08:30:26 +01:00