Rename package, include and function name of system plugin 91/292091/3
authorSangYoun Kwak <sy.kwak@samsung.com>
Thu, 27 Apr 2023 05:48:45 +0000 (14:48 +0900)
committerSangYoun Kwak <sy.kwak@samsung.com>
Thu, 27 Apr 2023 07:50:35 +0000 (16:50 +0900)
Since the name of plugin has changed to syscommon-plugin/system-plugin,
the package name, include path and function name of plugin should be
changed.
 * in .spec file and CMakeLists.txt, package names are renamed:
      plugin-api-resourced -> libsyscommon-plugin-api-resourced
 * include path:
      plugin/plugin-resourced... -> syscommon-plugin-resourced...
      (The 'system' directory was included by the package config(.pc)
       file of plugins)
 * function name:
      plugin_resourced_memory_lmk_get_kill_candidates
      -> syscommon_plugin_resourced_memory_lmk_get_kill_candidates

Change-Id: Ie3b07e06e4d43536ac5ba2d92a2ef7ed2c1926b7
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
packaging/resourced.spec
src/CMakeLists.txt
src/resource-limiter/memory/lowmem-governor.c
src/resource-limiter/memory/lowmem.h

index 8f4f55c624aa26c9d19eab73cab3e41b63888c34..0c970fab559c7c5307931eb74acc5f52e568631a 100644 (file)
@@ -42,7 +42,7 @@ BuildRequires:  pkgconfig(capi-system-device)
 BuildRequires:  pkgconfig(capi-system-resource)
 BuildRequires:  pkgconfig(cmocka)
 BuildRequires:  pkgconfig(libsyscommon)
-BuildRequires:  pkgconfig(plugin-api-resourced)
+BuildRequires:  pkgconfig(libsyscommon-plugin-api-resourced)
 BuildRequires: gperf
 
 # for swap plugin
index 269040768de9136dafb055ea9382d07ae9fea9f2..f3d90671ac4abbeb28612c081e0f892e3fe2eab4 100644 (file)
@@ -110,7 +110,7 @@ SET(REQUIRES_LIST ${REQUIRES_LIST}
        libudev
        dbus-1
        libsyscommon
-       plugin-api-resourced
+       libsyscommon-plugin-api-resourced
   )
 
 INCLUDE(FindPkgConfig)
index 88389afc1d2e6d26a4d65d6cc4dbe00fa856d81d..2cfa41c3029b6e347adb2a3796f1466183b030c1 100644 (file)
@@ -21,7 +21,7 @@
  * @desc Provides governor function to sort out candidate process to kill.
  */
 
-#include <plugin/plugin-resourced-memory-lmk.h>
+#include <system/syscommon-plugin-resourced-memory-lmk.h>
 
 #include "lowmem.h"
 #include "module.h"
@@ -48,7 +48,7 @@ static int lowmem_governor_initialize(void *data)
         */
 
        /* Register the governor for the lowmem_worker(lowmem killer) */
-       lowmem_register_lmk_governor(plugin_resourced_memory_lmk_get_kill_candidates);
+       lowmem_register_lmk_governor(syscommon_plugin_resourced_memory_lmk_get_kill_candidates);
 
        /* Register governors for the memory levels */
        lowmem_register_mem_level_governor(MEM_LEVEL_HIGH, mem_state_dummy_governor);
index 763bc19358d18e87657d437abe3d04ad02e23b1d..d853241967f3ae79f35a2bff2c36176c2144c6b6 100644 (file)
@@ -29,7 +29,7 @@
 #include <proc-common.h>
 #include <memory-cgroup.h>
 
-#include <plugin/plugin-resourced-memory-lmk.h>
+#include <system/syscommon-plugin-resourced-memory-lmk.h>
 
 #include "fd-handler.h"