diff options
| author | 2023-02-07 11:43:04 +0100 | |
|---|---|---|
| committer | 2023-02-07 11:43:04 +0100 | |
| commit | fe1b22723868b038c4d0b84d9582edcdd888af97 (patch) | |
| tree | 7db408f97a23c3283eebf1e02caec03bfab9c614 /src/bplist.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/bplist.c')
| -rw-r--r-- | src/bplist.c | 5 |
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) | |||
| 227 | /* deinit binary plist stuff */ | 227 | /* deinit binary plist stuff */ |
| 228 | } | 228 | } |
| 229 | 229 | ||
| 230 | void plist_bin_set_debug(int debug) | ||
| 231 | { | ||
| 232 | plist_bin_debug = debug; | ||
| 233 | } | ||
| 234 | |||
| 230 | static plist_t parse_bin_node_at_index(struct bplist_data *bplist, uint32_t node_index); | 235 | static plist_t parse_bin_node_at_index(struct bplist_data *bplist, uint32_t node_index); |
| 231 | 236 | ||
| 232 | static plist_t parse_int_node(const char **bnode, uint8_t size) | 237 | static plist_t parse_int_node(const char **bnode, uint8_t size) |
