]> git.proxmox.com Git - mirror_qemu.git/blame - include/qapi/util.h
minikconf: do not include variables from MINIKCONF_ARGS in config-all-devices.mak
[mirror_qemu.git] / include / qapi / util.h
CommitLineData
9e7dac7c
PL
1/*
2 * QAPI util functions
3 *
4 * Copyright Fujitsu, Inc. 2014
5 *
6 * This work is licensed under the terms of the GNU LGPL, version 2.1 or later.
7 * See the COPYING.LIB file in the top-level directory.
8 *
9 */
10
11#ifndef QAPI_UTIL_H
12#define QAPI_UTIL_H
13
f7abe0ec
MAL
14typedef struct QEnumLookup {
15 const char *const *array;
16 int size;
17} QEnumLookup;
18
19const char *qapi_enum_lookup(const QEnumLookup *lookup, int val);
20int qapi_enum_parse(const QEnumLookup *lookup, const char *buf,
06c60b6c 21 int def, Error **errp);
9e7dac7c 22
069b64e3
MA
23int parse_qapi_name(const char *name, bool complete);
24
9e7dac7c 25#endif