summaryrefslogtreecommitdiffstats
path: root/src/plist.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2017-02-05 06:01:11 +0100
committerGravatar Nikias Bassen2017-02-05 06:01:11 +0100
commit31d7cc5370f37cc6b9ecc4e26256e74634554343 (patch)
tree85d35012ca641e012c1d9c8acd2fd76c5dfb81a8 /src/plist.c
parent67eb54ab73f07560ae72058ed6ab6b47936be695 (diff)
downloadlibplist-31d7cc5370f37cc6b9ecc4e26256e74634554343.tar.gz
libplist-31d7cc5370f37cc6b9ecc4e26256e74634554343.tar.bz2
bplist: Add error/debug logging (only if configured with --enable-debug)
This commit adds proper debug/error messages being printed if the binary plist parser encounters anything abnormal. To enable debug logging, libplist must be configured with --enable-debug, and the environment variable PLIST_BIN_DEBUG must be set to "1".
Diffstat (limited to 'src/plist.c')
-rw-r--r--src/plist.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plist.c b/src/plist.c
index 8c2866d..3314378 100644
--- a/src/plist.c
+++ b/src/plist.c
@@ -41,14 +41,18 @@
extern void plist_xml_init(void);
extern void plist_xml_deinit(void);
+extern void plist_bin_init(void);
+extern void plist_bin_deinit(void);
static void internal_plist_init(void)
{
+ plist_bin_init();
plist_xml_init();
}
static void internal_plist_deinit(void)
{
+ plist_bin_deinit();
plist_xml_deinit();
}