diff options
Diffstat (limited to 'WireGuard/Shared/Logging/ringlogger.h')
-rw-r--r-- | WireGuard/Shared/Logging/ringlogger.h | 7 |
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); |