aboutsummaryrefslogtreecommitdiffstats
path: root/pack.h
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2020-09-09 18:13:40 +0100
committerTomasz Kramkowski <tk@the-tk.com>2020-09-09 18:13:40 +0100
commit22ea2f04442442f9728825ad7888ca9c5250407e (patch)
tree84d91bb50599b538b3ead72337cbc39327e4a6b8 /pack.h
parent2e1ff80dab0cee0f197dccc9c5dd2f3b9afdb168 (diff)
downloadpack-22ea2f04442442f9728825ad7888ca9c5250407e.tar.gz
pack-22ea2f04442442f9728825ad7888ca9c5250407e.tar.xz
pack-22ea2f04442442f9728825ad7888ca9c5250407e.zip
Add tracing functions for debugging
Diffstat (limited to 'pack.h')
-rw-r--r--pack.h7
1 files changed, 7 insertions, 0 deletions
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);