]>
git.proxmox.com Git - mirror_qemu.git/blob - hmp.c
2 * Human Monitor Interface
4 * Copyright IBM, Corp. 2011
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.
15 #include "qmp-commands.h"
17 void hmp_info_name(Monitor
*mon
)
21 info
= qmp_query_name(NULL
);
23 monitor_printf(mon
, "%s\n", info
->name
);
25 qapi_free_NameInfo(info
);
28 void hmp_info_version(Monitor
*mon
)
32 info
= qmp_query_version(NULL
);
34 monitor_printf(mon
, "%" PRId64
".%" PRId64
".%" PRId64
"%s\n",
35 info
->qemu
.major
, info
->qemu
.minor
, info
->qemu
.micro
,
38 qapi_free_VersionInfo(info
);