summaryrefslogtreecommitdiff
path: root/json-parser.c
diff options
context:
space:
mode:
authorMichael Roth <mdroth@linux.vnet.ibm.com>2011-06-01 12:14:59 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2011-06-07 13:52:11 -0500
commit5e2dafeb198ba095ea784a97b44011ce2ed03511 (patch)
tree2d58d81dfeb624c1128a01c563f36a2cbc410db8 /json-parser.c
parentb011f61931f0113b29b7cd7e921dd022e0b04834 (diff)
downloadqemu-5e2dafeb198ba095ea784a97b44011ce2ed03511.tar.gz
qemu-5e2dafeb198ba095ea784a97b44011ce2ed03511.tar.bz2
qemu-5e2dafeb198ba095ea784a97b44011ce2ed03511.zip
json-streamer: add handling for JSON_ERROR token/state
This allows a JSON_ERROR state to be passed to the streamer to force a flush of the current tokens and pass a NULL token list to the parser rather that have it churn on bad data. (Alternatively we could just not pass it to the parser at all, but it may be useful to push there errors up the stack. NULL token lists are not currently handled by the parser, the next patch will address that) Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'json-parser.c')
0 files changed, 0 insertions, 0 deletions