json-parser.h 561 B

12345678910111213141516171819202122232425
  1. /*
  2. * JSON Parser
  3. *
  4. * Copyright IBM, Corp. 2009
  5. *
  6. * Authors:
  7. * Anthony Liguori <aliguori@us.ibm.com>
  8. *
  9. * This work is licensed under the terms of the GNU LGPL, version 2.1 or later.
  10. * See the COPYING.LIB file in the top-level directory.
  11. *
  12. */
  13. #ifndef QEMU_JSON_PARSER_H
  14. #define QEMU_JSON_PARSER_H
  15. #include "qemu-common.h"
  16. #include "qapi/qmp/json-lexer.h"
  17. typedef struct JSONToken JSONToken;
  18. JSONToken *json_token(JSONTokenType type, int x, int y, GString *tokstr);
  19. QObject *json_parser_parse(GQueue *tokens, va_list *ap, Error **errp);
  20. #endif