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/bplist.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/bplist.c') diff --git a/src/bplist.c b/src/bplist.c index ff0b399..72040cc 100644 --- a/src/bplist.c +++ b/src/bplist.c @@ -227,6 +227,11 @@ void plist_bin_deinit(void) /* deinit binary plist stuff */ } +void plist_bin_set_debug(int debug) +{ + plist_bin_debug = debug; +} + static plist_t parse_bin_node_at_index(struct bplist_data *bplist, uint32_t node_index); static plist_t parse_int_node(const char **bnode, uint8_t size) -- cgit v1.1-32-gdbae