diff options
author | Petri Lehtinen <petri@digip.org> | 2010-10-26 23:36:24 +0300 |
---|---|---|
committer | Petri Lehtinen <petri@digip.org> | 2010-10-27 21:58:20 +0300 |
commit | 5422a862de2354b3419ef628bac5a18c6ef522da (patch) | |
tree | 8e5093fdb899dbf3a304da023cc5bc3cd9e71e9c /src/jansson_private.h | |
parent | 818baf5fdb0710fba64274486650a289624f6a16 (diff) | |
download | jansson-5422a862de2354b3419ef628bac5a18c6ef522da.zip jansson-5422a862de2354b3419ef628bac5a18c6ef522da.tar.gz jansson-5422a862de2354b3419ef628bac5a18c6ef522da.tar.bz2 |
Enhance error reporting
This patch adds two new fields to the json_error_t struct: column and
source. It also adds functions to populate json_error_t internally.
The column field is not currently used, but it will be utilized in the
decoder and pack/unpack functions.
Diffstat (limited to 'src/jansson_private.h')
-rw-r--r-- | src/jansson_private.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/jansson_private.h b/src/jansson_private.h index e9102ba..951780c 100644 --- a/src/jansson_private.h +++ b/src/jansson_private.h @@ -63,4 +63,8 @@ typedef struct { const object_key_t *jsonp_object_iter_fullkey(void *iter); +void jsonp_error_init(json_error_t *error, const char *source); +void jsonp_error_set(json_error_t *error, int line, int column, + const char *msg, ...); + #endif |