19e7dac7cSPeter Lieven /* 29e7dac7cSPeter Lieven * QAPI util functions 39e7dac7cSPeter Lieven * 49e7dac7cSPeter Lieven * Copyright Fujitsu, Inc. 2014 59e7dac7cSPeter Lieven * 69e7dac7cSPeter Lieven * This work is licensed under the terms of the GNU LGPL, version 2.1 or later. 79e7dac7cSPeter Lieven * See the COPYING.LIB file in the top-level directory. 89e7dac7cSPeter Lieven * 99e7dac7cSPeter Lieven */ 109e7dac7cSPeter Lieven 119e7dac7cSPeter Lieven #ifndef QAPI_UTIL_H 129e7dac7cSPeter Lieven #define QAPI_UTIL_H 139e7dac7cSPeter Lieven 142e4450ffSDaniel P. Berrange int qapi_enum_parse(const char * const lookup[], const char *buf, 15*06c60b6cSMarkus Armbruster int def, Error **errp); 169e7dac7cSPeter Lieven 17069b64e3SMarkus Armbruster int parse_qapi_name(const char *name, bool complete); 18069b64e3SMarkus Armbruster 199e7dac7cSPeter Lieven #endif 20