aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/Shared/Logging/ringlogger.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-03-17 00:41:10 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2019-03-17 08:51:27 +0100
commita6f80135ef65f33da67459b56c7f659c64d6d341 (patch)
treefcfe4ec56bdcac07ad235e9db9a83a530fd0e576 /WireGuard/Shared/Logging/ringlogger.h
parentmacOS: Tunnel detail: Activate / Deactivate is now a button (diff)
downloadwireguard-apple-a6f80135ef65f33da67459b56c7f659c64d6d341.tar.xz
wireguard-apple-a6f80135ef65f33da67459b56c7f659c64d6d341.zip
ringlogger: support mpsc for singlefile
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'WireGuard/Shared/Logging/ringlogger.h')
-rw-r--r--WireGuard/Shared/Logging/ringlogger.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/WireGuard/Shared/Logging/ringlogger.h b/WireGuard/Shared/Logging/ringlogger.h
index 0ee202d..7f5b074 100644
--- a/WireGuard/Shared/Logging/ringlogger.h
+++ b/WireGuard/Shared/Logging/ringlogger.h
@@ -6,9 +6,12 @@
#ifndef RINGLOGGER_H
#define RINGLOGGER_H
+#include <stdint.h>
+
struct log;
-void write_msg_to_log(struct log *log, const char *msg);
-int write_logs_to_file(const char *file_name, const struct log *log1, const char *tag1, const struct log *log2, const char *tag2);
+void write_msg_to_log(struct log *log, const char *tag, const char *msg);
+int write_log_to_file(const char *file_name, const struct log *input_log);
+uint32_t view_lines_from_cursor(const struct log *input_log, uint32_t cursor, void(*)(const char *, uint64_t));
struct log *open_log(const char *file_name);
void close_log(struct log *log);