Modify names from 'plugin' to 'system plugin' 72/292072/2 accepted/tizen/unified/20230607.160238
authorSangYoun Kwak <sy.kwak@samsung.com>
Wed, 26 Apr 2023 04:53:23 +0000 (13:53 +0900)
committerSangYoun Kwak <sy.kwak@samsung.com>
Thu, 27 Apr 2023 06:22:14 +0000 (15:22 +0900)
Since the package name of this repository changed from plugin to system
plugin, every 'plugin' names should be modified to 'system plugin'.
 * plugin_... -> system_plugin
 * plugin-... -> system-plugin
 * PLUGIN_... -> SYSTEM_PLUGIN_...
Includes of plugin-api and their path also changed:
 * plugin/plugin-....h -> system/syscommon-plugin-....h

Change-Id: I79b434a8f5ead9fd3232b440f568755e298a0665
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
packaging/system-plugin-resourced-generic.spec
src/resourced-memory-lmk/CMakeLists.txt
src/resourced-memory-lmk/resourced-memory-lmk.c

index a236ef55e12badd507310fd50b6f867726b080de..8a93f8c07083f18675375c0245009d3267ff59e5 100644 (file)
@@ -1,4 +1,4 @@
-%define PLUGIN_LIBDIR %{_libdir}/system/plugin
+%define SYSTEM_PLUGIN_LIBDIR %{_libdir}/system/plugin
 
 Name:       system-plugin-resourced-generic
 Summary:    System plugin for resourced and generic profile
@@ -15,7 +15,7 @@ Requires(postun): /sbin/ldconfig
 BuildRequires:  cmake
 BuildRequires:  pkgconfig(glib-2.0)
 BuildRequires:  pkgconfig(libsyscommon)
-BuildRequires:  pkgconfig(plugin-api-resourced)
+BuildRequires:  pkgconfig(libsyscommon-plugin-api-resourced)
 
 %description
 System plugin for resourced and generic profile
@@ -26,7 +26,7 @@ cp %{SOURCE1} .
 
 %build
 %cmake . -DPLUGIN_NAME=%{name} \
-       -DPLUGIN_LIB_DIR=%{PLUGIN_LIBDIR} \
+       -DPLUGIN_LIB_DIR=%{SYSTEM_PLUGIN_LIBDIR} \
        -DPLUGIN_RESOURCED_MEMORY_LMK_ENABLE_DLOG=1
 
 make %{?jobs:-j%jobs}
@@ -44,4 +44,4 @@ make %{?jobs:-j%jobs}
 %defattr(-,root,root,-)
 %manifest %{name}.manifest
 %license LICENSE.Apache-2.0
-%{PLUGIN_LIBDIR}/libplugin-resourced-memory-lmk.so
+%{SYSTEM_PLUGIN_LIBDIR}/libplugin-resourced-memory-lmk.so
index 371aef085f09cbcc741b224797a915dade4f25ce..ef7722cbedd3de666cba491c2d7a2b320507a37f 100644 (file)
@@ -6,14 +6,14 @@ SET(PREFIX ${CMAKE_INSTALL_PREFIX})
 if (${PLUGIN_RESOURCED_MEMORY_LMK_ENABLE_DLOG})
        SET(PKG_MODULES
                libsyscommon
-               plugin-api-resourced
+               libsyscommon-plugin-api-resourced
                glib-2.0)
        ADD_DEFINITIONS("-DENABLE_DLOG")
-       ADD_DEFINITIONS("-DLOG_TAG=\"PLUGIN_RESOURCED_MEMORY_LMK\"")
+       ADD_DEFINITIONS("-DLOG_TAG=\"SYSTEM_PLUGIN_RESOURCED_MEMORY_LMK\"")
 else()
        SET(PKG_MODULES
                libsyscommon
-               plugin-api-resourced)
+               libsyscommon-plugin-api-resourced)
 endif()
 
 INCLUDE(FindPkgConfig)
index 3ed072be6c03fcc658d8d3b6ce8473fa02ec8be7..0f2afa17677b900424991c617ba0a3d14fe63840 100644 (file)
@@ -21,9 +21,9 @@
 #include <assert.h>
 #include <stdbool.h>
 
-#include <plugin/plugin-common-interface.h>
-#include <plugin/plugin-resourced-memory-lmk.h>
-#include <plugin/plugin-resourced-memory-lmk-interface.h>
+#include <system/syscommon-plugin-common-interface.h>
+#include <system/syscommon-plugin-resourced-memory-lmk.h>
+#include <system/syscommon-plugin-resourced-memory-lmk-interface.h>
 
 #include "common.h"
 
@@ -85,7 +85,7 @@ int get_kill_candidates(GArray *candidates,
 
 static int resourced_memory_lmk_init(void **data)
 {
-       plugin_backend_resourced_memory_lmk_funcs *funcs = NULL;
+       syscommon_plugin_backend_resourced_memory_lmk_funcs *funcs = NULL;
 
        funcs = calloc(1, sizeof(*funcs));
        if (!funcs)
@@ -104,10 +104,10 @@ static int resourced_memory_lmk_exit(void *data)
        return 0;
 }
 
-plugin_backend EXPORT plugin_backend_resourced_memory_lmk_data = {
+syscommon_plugin_backend EXPORT system_plugin_backend_resourced_memory_lmk_data = {
        .name = "resourced-memory-lmk",
        .vendor = "Samsung",
-       .abi_version = PLUGIN_ABI_VERSION_TIZEN_7_5,
+       .abi_version = SYSCOMMON_PLUGIN_ABI_VERSION_TIZEN_7_5,
        .init = resourced_memory_lmk_init,
        .exit = resourced_memory_lmk_exit,
 };