summaryrefslogtreecommitdiffstats
path: root/src/bplist.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2023-02-07 11:43:04 +0100
committerGravatar Nikias Bassen2023-02-07 11:43:04 +0100
commitfe1b22723868b038c4d0b84d9582edcdd888af97 (patch)
tree7db408f97a23c3283eebf1e02caec03bfab9c614 /src/bplist.c
parent6390abcd1c94f4c29291c81322726d6946fd345f (diff)
downloadlibplist-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/bplist.c')
-rw-r--r--src/bplist.c5
1 files changed, 5 insertions, 0 deletions
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)