Add enumeration of oom level into libsyscommon to reference it
from both resourced and resourced plugin-backend
Oom level will be referenced by resourced and resourced backend
when LMK is triggered by low memory. Therefore, it should be located in
common library (i.e., libsyscommon)
Change-Id: I2dcc1c7e3768dccf5db256845614557b6d8dc60c
Signed-off-by: Unsung Lee <unsung.lee@samsung.com>
extern "C" {
#endif
+enum syscommon_resourced_memory_lmk_oom_level {
+ OOM_LEVEL_BACKGROUND_LEAST_RECENTLY_USED,
+ OOM_LEVEL_BACKGROUND_MOST_RECENTLY_USED,
+ OOM_LEVEL_FOREGROUND,
+ OOM_LEVEL_FOREGROUND_AND_PROC,
+ OOM_LEVEL_ALL,
+};
+
struct task_info {
/*
* Mostly, there are not multiple processes with the same pgid.