From 22ea2f04442442f9728825ad7888ca9c5250407e Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Wed, 9 Sep 2020 18:13:40 +0100 Subject: Add tracing functions for debugging --- pack.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pack.h') diff --git a/pack.h b/pack.h index 7a8fc69..ec8cf63 100644 --- a/pack.h +++ b/pack.h @@ -9,6 +9,13 @@ enum pack_status { PACK_TOOSMALL, }; +extern enum pack_trace { + PACK_TRACE_OFF, + PACK_TRACE_CALL, + PACK_TRACE_DEBUG, + PACK_TRACE_ALL, +} pack_trace; + enum pack_status unpack(void *buf, size_t size, const char *fmt, ...); const char *pack_strerror(enum pack_status status); -- cgit v1.2.3-54-g00ecf