From e11224f39410393dd314650cc592afec556abd9b Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 13 Dec 2018 05:51:03 +0100 Subject: Commit untested ringlogger code Signed-off-by: Jason A. Donenfeld --- WireGuard/Shared/RingLogger/ringlogger.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 WireGuard/Shared/RingLogger/ringlogger.h (limited to 'WireGuard/Shared/RingLogger/ringlogger.h') diff --git a/WireGuard/Shared/RingLogger/ringlogger.h b/WireGuard/Shared/RingLogger/ringlogger.h new file mode 100644 index 0000000..d90e0c5 --- /dev/null +++ b/WireGuard/Shared/RingLogger/ringlogger.h @@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: MIT + * + * Copyright © 2018 WireGuard LLC. All Rights Reserved. + */ + +#ifndef RINGLOGGER_H +#define RINGLOGGER_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 struct log *log2); +struct log *open_log(const char *file_name); + +#endif -- cgit v1.2.3-59-g8ed1b