22 lines
459 B
C
22 lines
459 B
C
/* SPDX-License-Identifier: BSD-3-Clause */
|
|
|
|
#ifndef EVENTLOG_H_
|
|
#define EVENTLOG_H_
|
|
|
|
#include <stdint.h>
|
|
|
|
struct event_header;
|
|
struct buffer;
|
|
|
|
enum eventlog_timezone {
|
|
EVENTLOG_TIMEZONE_LOCALTIME = 0,
|
|
EVENTLOG_TIMEZONE_UTC,
|
|
};
|
|
|
|
void eventlog_print_event(const struct event_header *event, int count,
|
|
enum eventlog_timezone tz);
|
|
int eventlog_init_event(const struct buffer *buf, uint8_t type,
|
|
const void *data, int data_size);
|
|
|
|
#endif // EVENTLOG_H_
|