util.h 431 B

12345678910111213141516171819
  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. #ifndef QAPI_UTIL_H
  11. #define QAPI_UTIL_H
  12. int qapi_enum_parse(const char * const lookup[], const char *buf,
  13. int max, int def, Error **errp);
  14. int parse_qapi_name(const char *name, bool complete);
  15. #endif