]> git.proxmox.com Git - qemu.git/blame - qmp.c
qapi: convert query-name
[qemu.git] / qmp.c
CommitLineData
48a32bed
AL
1/*
2 * QEMU Management Protocol
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 "qemu-common.h"
15#include "sysemu.h"
16#include "qmp-commands.h"
17
18NameInfo *qmp_query_name(Error **errp)
19{
20 NameInfo *info = g_malloc0(sizeof(*info));
21
22 if (qemu_name) {
23 info->has_name = true;
24 info->name = g_strdup(qemu_name);
25 }
26
27 return info;
28}