]>
Commit | Line | Data |
---|---|---|
48a32bed AL |
1 | /* |
2 | * Human Monitor Interface | |
3 | * | |
4 | * Copyright IBM, Corp. 2011 | |
5 | * | |
6 | * Authors: | |
7 | * Anthony Liguori <aliguori@us.ibm.com> | |
8 | * | |
9 | * This work is licensed under the terms of the GNU GPL, version 2. See | |
10 | * the COPYING file in the top-level directory. | |
11 | * | |
12 | */ | |
13 | ||
14 | #include "hmp.h" | |
15 | #include "qmp-commands.h" | |
16 | ||
17 | void hmp_info_name(Monitor *mon) | |
18 | { | |
19 | NameInfo *info; | |
20 | ||
21 | info = qmp_query_name(NULL); | |
22 | if (info->has_name) { | |
23 | monitor_printf(mon, "%s\n", info->name); | |
24 | } | |
25 | qapi_free_NameInfo(info); | |
26 | } |