Make json_error_t opaque
authorPetri Lehtinen <petri@digip.org>
Thu, 14 Oct 2010 17:57:55 +0000 (20:57 +0300)
committerPetri Lehtinen <petri@digip.org>
Thu, 14 Oct 2010 18:02:37 +0000 (21:02 +0300)
commit23dd078c8dcb17fd29d3b69f082b5b93f5f13b8f
tree961526a470e7783ec78a7a8edaea75c02f39b9c3
parent781bda140418821ad79ef513b0fd8cfbc0ce552e
Make json_error_t opaque

All decoding functions now accept a json_error_t** parameter and set
it to point to a heap-allocated json_error_t structure if an error
occurs. The contents of json_error_t are no longer exposed directly, a
few functions to do it have been added instead. If an error occurs,
the user must free the json_error_t value.

This makes it possible to enhance the error reporting facilities in
the future without breaking ABI compatibility with older versions.

This is a backwards incompatible change.
doc/apiref.rst
src/jansson.h
src/load.c
test/bin/json_process.c
test/suites/api/check-exports
test/suites/api/test_load.c