summaryrefslogtreecommitdiff
path: root/json-glib/json-array.c
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@openedhand.com>2007-09-21 11:54:40 +0100
committerEmmanuele Bassi <ebassi@openedhand.com>2007-09-21 11:54:40 +0100
commitd98d8c3d245192abe6ec5a531c9d0d678b07d061 (patch)
tree8e30d2694dc9f9ac94c3973fd9fd7276199445c1 /json-glib/json-array.c
parentcd1040e2fb6f6da50aaf72017746b33234c39704 (diff)
downloadjson-glib-d98d8c3d245192abe6ec5a531c9d0d678b07d061.tar.gz
Add stubs to JsonParser for actually parsing a JSON stream
Initial commit for getting JsonParser to work. Because GScanner API is old and mostly sucks, we need to do some magic with signals. If json_parser_load_from_data() fails, the passed GError will be set with a JSON_PARSER_ERROR code and message; unfortunately, we can't get the nice error message out of GScanner. We can, however, override the default message handler and make it emit a signal on the JsonParser object. So, to make a long story short: the GError passed to the load_from_data() method is filled with a short error message; the *real* error message is passed to the ::error signal handlers so they can actually use it. GScanner should really get a way to retrieve the last error message.
Diffstat (limited to 'json-glib/json-array.c')
0 files changed, 0 insertions, 0 deletions