Home
last modified time | relevance | path

Searched refs:parser (Results 1 – 5 of 5) sorted by relevance

/illumos-kvm-cmd/
H A Djson-streamer.c29 parser->brace_count++; in json_message_process_token()
32 parser->brace_count--; in json_message_process_token()
35 parser->bracket_count++; in json_message_process_token()
54 if (parser->brace_count == 0 && in json_message_process_token()
56 parser->emit(parser, parser->tokens); in json_message_process_token()
57 QDECREF(parser->tokens); in json_message_process_token()
65 parser->emit = func; in json_message_parser_init()
66 parser->brace_count = 0; in json_message_parser_init()
67 parser->bracket_count = 0; in json_message_parser_init()
68 parser->tokens = qlist_new(); in json_message_parser_init()
[all …]
H A Djson-streamer.h22 void (*emit)(struct JSONMessageParser *parser, QList *tokens);
29 void json_message_parser_init(JSONMessageParser *parser,
32 int json_message_parser_feed(JSONMessageParser *parser,
35 int json_message_parser_flush(JSONMessageParser *parser);
37 void json_message_parser_destroy(JSONMessageParser *parser);
H A Dqjson.c26 JSONMessageParser parser; member
31 static void parse_json(JSONMessageParser *parser, QList *tokens) in parse_json() argument
33 JSONParsingState *s = container_of(parser, JSONParsingState, parser); in parse_json()
43 json_message_parser_init(&state.parser, parse_json); in qobject_from_jsonv()
44 json_message_parser_feed(&state.parser, string, strlen(string)); in qobject_from_jsonv()
45 json_message_parser_flush(&state.parser); in qobject_from_jsonv()
46 json_message_parser_destroy(&state.parser); in qobject_from_jsonv()
H A Dmonitor.c135 JSONMessageParser parser; member
4967 static void handle_qmp_command(JSONMessageParser *parser, QList *tokens) in handle_qmp_command() argument
5055 json_message_parser_feed(&cur_mon->mc->parser, (const char *) buf, size); in monitor_control_read()
5122 json_message_parser_init(&mon->mc->parser, handle_qmp_command); in monitor_control_event()
5128 json_message_parser_destroy(&mon->mc->parser); in monitor_control_event()
H A DMakefile179 …ct.o qstring.o qlist.o qbool.o qjson.o json-streamer.o json-lexer.o json-parser.o $(CHECK_PROG_DEP…

Completed in 12 milliseconds