qapi: convert query-name
[qemu.git] / hmp.c
blob47e1ff75cd59b278fe092f08645ade6bf9bb20c7
1 /*
2 * Human Monitor Interface
4 * Copyright IBM, Corp. 2011
6 * Authors:
7 * Anthony Liguori <aliguori@us.ibm.com>
9 * This work is licensed under the terms of the GNU GPL, version 2. See
10 * the COPYING file in the top-level directory.
14 #include "hmp.h"
15 #include "qmp-commands.h"
17 void hmp_info_name(Monitor *mon)
19 NameInfo *info;
21 info = qmp_query_name(NULL);
22 if (info->has_name) {
23 monitor_printf(mon, "%s\n", info->name);
25 qapi_free_NameInfo(info);