aboutgitcodebugslistschat
path: root/util.h
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2021-03-18 07:49:08 +0100
committerStefano Brivio <sbrivio@redhat.com>2021-03-18 12:58:07 +0100
commit48ca38c6068bd15a94b1ecf2977d3f0160bbe63b (patch)
treeb15899a7dc87d400eabf56dcc67dc6f3b824addf /util.h
parent8bfcc9208cf99a653b9235bbe28ad5eb6c2e6bf2 (diff)
downloadpasst-48ca38c6068bd15a94b1ecf2977d3f0160bbe63b.tar
passt-48ca38c6068bd15a94b1ecf2977d3f0160bbe63b.tar.gz
passt-48ca38c6068bd15a94b1ecf2977d3f0160bbe63b.tar.bz2
passt-48ca38c6068bd15a94b1ecf2977d3f0160bbe63b.tar.lz
passt-48ca38c6068bd15a94b1ecf2977d3f0160bbe63b.tar.xz
passt-48ca38c6068bd15a94b1ecf2977d3f0160bbe63b.tar.zst
passt-48ca38c6068bd15a94b1ecf2977d3f0160bbe63b.zip
passt: Run in background, add message logging with severities
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'util.h')
-rw-r--r--util.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/util.h b/util.h
index 77e8d8c..139638c 100644
--- a/util.h
+++ b/util.h
@@ -1,3 +1,13 @@
+void err(const char *format, ...);
+void warn(const char *format, ...);
+void info(const char *format, ...);
+
+#ifdef DEBUG
+void debug(const char *format, ...);
+#else
+#define debug(...) { }
+#endif
+
uint16_t csum_fold(uint32_t sum);
uint16_t csum_ip4(void *buf, size_t len);
void csum_tcp4(struct iphdr *iph);