xref: /openbmc/qemu/include/qapi/util.h (revision 788b305c91398f18e5952667b929d7f45e2c211c)
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 
14 const char *qapi_enum_lookup(const char *const lookup[], int val);
15 int qapi_enum_parse(const char * const lookup[], const char *buf,
16                     int def, Error **errp);
17 
18 int parse_qapi_name(const char *name, bool complete);
19 
20 #endif
21