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/xplist.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/xplist.c')
-rw-r--r-- | src/xplist.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/xplist.c b/src/xplist.c index 1abc46d..bd506fb 100644 --- a/src/xplist.c +++ b/src/xplist.c @@ -102,6 +102,11 @@ void plist_xml_deinit(void) /* deinit XML stuff */ } +void plist_xml_set_debug(int debug) +{ + plist_xml_debug = debug; +} + static size_t dtostr(char *buf, size_t bufsize, double realval) { size_t len = 0; |