diff options
author | Nikias Bassen | 2023-02-07 11:43:04 +0100 |
---|---|---|
committer | Nikias Bassen | 2023-02-07 11:43:04 +0100 |
commit | fe1b22723868b038c4d0b84d9582edcdd888af97 (patch) | |
tree | 7db408f97a23c3283eebf1e02caec03bfab9c614 /src/jplist.c | |
parent | 6390abcd1c94f4c29291c81322726d6946fd345f (diff) | |
download | libplist-fe1b22723868b038c4d0b84d9582edcdd888af97.tar.gz libplist-fe1b22723868b038c4d0b84d9582edcdd888af97.tar.bz2 |
Add function to interface to allow enabling/disabling error/debug output for the format parses
This makes the `-d` option work in plistutil that wasn't doing anything
Diffstat (limited to 'src/jplist.c')
-rw-r--r-- | src/jplist.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/jplist.c b/src/jplist.c index 99a8877..8ed7398 100644 --- a/src/jplist.c +++ b/src/jplist.c @@ -64,6 +64,11 @@ void plist_json_deinit(void) /* deinit JSON stuff */ } +void plist_json_set_debug(int debug) +{ + plist_json_debug = debug; +} + #ifndef HAVE_STRNDUP static char* strndup(const char* str, size_t len) { |