1
0
Fork 0
forked from AbleOS/ableos
ableos-idl/sysdata/idl/log/src/protocol.aldi

26 lines
327 B
Plaintext

// A comment
//@auto_increment
enum LogLevel {
Error = 0,
Warn = 1,
Info = 2,
Debug = 3,
Trace = 4,
}
//@auto_increment
enum LogResult {
Err = 0,
Ok = 1,
}
struct Log {
log_level: LogLevel,
}
//@visibility(public)
protocol Log {
fn log(Log) -> LogResult;
fn flush() -> LogResult;
}