4 * Copyright Fujitsu, Inc. 2014
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.
14 typedef struct QEnumLookup
{
15 const char *const *array
;
19 const char *qapi_enum_lookup(const QEnumLookup
*lookup
, int val
);
20 int qapi_enum_parse(const QEnumLookup
*lookup
, const char *buf
,
21 int def
, Error
**errp
);
23 int parse_qapi_name(const char *name
, bool complete
);