From ffaee83bcb28913b8b854aeab78b1a1f2115712d Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Tue, 9 Jul 2019 17:20:53 +0200 Subject: qapi: Move query-target from misc.json to machine.json Move query-target and its return type TargetInfo from misc.json to machine.json, where they are covered by MAINTAINERS section "Machine core". Also move its implementation from arch_init.c to hw/core/machine-qmp-cmds, where it is likewise covered. All users of SysEmuTarget are now in machine.json. Move it there from common.json. Signed-off-by: Markus Armbruster Message-Id: <20190709152053.16670-3-armbru@redhat.com> --- arch_init.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'arch_init.c') diff --git a/arch_init.c b/arch_init.c index 74b0708634..0a1531124c 100644 --- a/arch_init.c +++ b/arch_init.c @@ -106,14 +106,3 @@ int xen_available(void) return 0; #endif } - - -TargetInfo *qmp_query_target(Error **errp) -{ - TargetInfo *info = g_malloc0(sizeof(*info)); - - info->arch = qapi_enum_parse(&SysEmuTarget_lookup, TARGET_NAME, -1, - &error_abort); - - return info; -} -- cgit v1.2.3-55-g7522