Give enums a unique ID
This commit is contained in:
parent
49eca27204
commit
defaa53a40
|
@ -4,22 +4,22 @@
|
|||
#include <optional>
|
||||
|
||||
enum class Buffer {
|
||||
Unknown,
|
||||
Main,
|
||||
System,
|
||||
Radio,
|
||||
Events,
|
||||
Crash,
|
||||
Unknown = 0b1,
|
||||
Main = 0b10,
|
||||
System = 0b100,
|
||||
Radio = 0b1000,
|
||||
Events = 0b10000,
|
||||
Crash = 0b100000,
|
||||
};
|
||||
|
||||
enum class Priority {
|
||||
Unknown,
|
||||
Verbose,
|
||||
Debug,
|
||||
Info,
|
||||
Warn,
|
||||
Error,
|
||||
Fatal,
|
||||
Unknown = 0b1,
|
||||
Verbose = 0b10,
|
||||
Debug = 0b100,
|
||||
Info = 0b1000,
|
||||
Warn = 0b10000,
|
||||
Error = 0b100000,
|
||||
Fatal = 0b1000000,
|
||||
};
|
||||
|
||||
struct LogcatEntry {
|
||||
|
|
Loading…
Reference in New Issue