blob: f4a9476c77921e81409ac46a7461d7458f1d0b67 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#ifndef HYBBX_SECURITY_H
#define HYBBX_SECURITY_H
#include "hybbx/types.h"
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
struct hybbx_config;
/** Log file name under the configured logs directory. */
#define HYBBX_SECURITY_LOG_FILE "security.log"
void hybbx_security_log_config_apply(const struct hybbx_config *config);
void hybbx_security_log_shutdown(void);
/** Append one line to security.log (timestamp added). Always enabled when the log directory is available. */
void hybbx_security_log_write(const char *fmt, ...)
__attribute__((format(printf, 1, 2)));
/** Absolute path to security.log when the security log is ready. */
hybbx_result_t hybbx_security_log_current_path(char *out, size_t out_len);
#ifdef __cplusplus
}
#endif
#endif /* HYBBX_SECURITY_H */
|