2018-12-13 04:51:03 +00:00
|
|
|
/* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
* Copyright © 2018 WireGuard LLC. All Rights Reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef RINGLOGGER_H
|
|
|
|
#define RINGLOGGER_H
|
|
|
|
|
2018-12-13 14:26:04 +00:00
|
|
|
struct log;
|
2018-12-13 04:51:03 +00:00
|
|
|
void write_msg_to_log(struct log *log, const char *msg);
|
2018-12-13 14:26:04 +00:00
|
|
|
int write_logs_to_file(const char *file_name, const struct log *log1, const struct log *log2);
|
2018-12-13 04:51:03 +00:00
|
|
|
struct log *open_log(const char *file_name);
|
2018-12-13 14:26:04 +00:00
|
|
|
void close_log(struct log *log);
|
2018-12-13 04:51:03 +00:00
|
|
|
|
|
|
|
#endif
|