From defaa53a402744501ea8d08188eede05927c55a7 Mon Sep 17 00:00:00 2001 From: blankie Date: Mon, 23 Jan 2023 16:10:01 +0700 Subject: [PATCH] Give enums a unique ID --- logcat_entry.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/logcat_entry.h b/logcat_entry.h index f0ed008..dc53313 100644 --- a/logcat_entry.h +++ b/logcat_entry.h @@ -4,22 +4,22 @@ #include 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 {