summaryrefslogtreecommitdiffstats
path: root/include/log.h
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2020-09-23 14:32:52 -0400
committerDrew DeVault <sir@cmpwn.com>2020-09-23 14:32:52 -0400
commitb85c64b441e560f27f87fa26381600c2cbfe17b8 (patch)
tree050fbf04e9b4a816bd369ea409da9180409515f0 /include/log.h
parentda9db7bc46db0cb675635594c7c207e232a2da63 (diff)
downloadgmnisrv-b85c64b441e560f27f87fa26381600c2cbfe17b8.tar.gz
gmnisrv-b85c64b441e560f27f87fa26381600c2cbfe17b8.tar.xz
gmnisrv-b85c64b441e560f27f87fa26381600c2cbfe17b8.zip
Generalize logging
Diffstat (limited to 'include/log.h')
-rw-r--r--include/log.h10
1 files changed, 10 insertions, 0 deletions
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 <sys/socket.h>
+
+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