1*9e7dac7cSPeter Lieven /* 2*9e7dac7cSPeter Lieven * QAPI util functions 3*9e7dac7cSPeter Lieven * 4*9e7dac7cSPeter Lieven * Copyright Fujitsu, Inc. 2014 5*9e7dac7cSPeter Lieven * 6*9e7dac7cSPeter Lieven * This work is licensed under the terms of the GNU LGPL, version 2.1 or later. 7*9e7dac7cSPeter Lieven * See the COPYING.LIB file in the top-level directory. 8*9e7dac7cSPeter Lieven * 9*9e7dac7cSPeter Lieven */ 10*9e7dac7cSPeter Lieven 11*9e7dac7cSPeter Lieven #ifndef QAPI_UTIL_H 12*9e7dac7cSPeter Lieven #define QAPI_UTIL_H 13*9e7dac7cSPeter Lieven 14*9e7dac7cSPeter Lieven int qapi_enum_parse(const char *lookup[], const char *buf, 15*9e7dac7cSPeter Lieven int max, int def, Error **errp); 16*9e7dac7cSPeter Lieven 17*9e7dac7cSPeter Lieven #endif 18