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 --- include/plist/plist.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') diff --git a/include/plist/plist.h b/include/plist/plist.h index 0a21499..f955d5e 100644 --- a/include/plist/plist.h +++ b/include/plist/plist.h @@ -1094,6 +1094,13 @@ extern "C" */ void plist_mem_free(void* ptr); + /** + * Set debug level for the format parsers. + * + * @param debug Debug level. Currently, only 0 (off) and 1 (enabled) are supported. + */ + void plist_set_debug(int debug); + /*@}*/ #ifdef __cplusplus -- cgit v1.1-32-gdbae