From b85c64b441e560f27f87fa26381600c2cbfe17b8 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Wed, 23 Sep 2020 14:32:52 -0400 Subject: Generalize logging --- include/log.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 include/log.h (limited to 'include/log.h') diff --git a/include/log.h b/include/log.h new file mode 100644 index 0000000..3f3f964 --- /dev/null +++ b/include/log.h @@ -0,0 +1,10 @@ +#ifndef GMNISRV_LOG +#define GMNISRV_LOG +#include + +void server_log(const char *fmt, ...); +void client_log(struct sockaddr *addr, const char *fmt, ...); +void server_error(const char *fmt, ...); +void client_error(struct sockaddr *addr, const char *fmt, ...); + +#endif -- cgit v1.2.3