From fe1b22723868b038c4d0b84d9582edcdd888af97 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Tue, 7 Feb 2023 11:43:04 +0100 Subject: 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 --- src/jplist.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/jplist.c') 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) { -- cgit v1.1-32-gdbae