From: SangYoun Kwak Date: Wed, 26 Apr 2023 04:53:23 +0000 (+0900) Subject: Modify names from 'plugin' to 'system plugin' X-Git-Tag: accepted/tizen/unified/20230607.160238^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dc36975f05d2321aac49bd77649fe7de376db1f7;p=platform%2Fcore%2Fsystem%2Fplugin%2Fresourced-generic.git Modify names from 'plugin' to 'system plugin' 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 --- diff --git a/packaging/system-plugin-resourced-generic.spec b/packaging/system-plugin-resourced-generic.spec index a236ef5..8a93f8c 100644 --- a/packaging/system-plugin-resourced-generic.spec +++ b/packaging/system-plugin-resourced-generic.spec @@ -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 diff --git a/src/resourced-memory-lmk/CMakeLists.txt b/src/resourced-memory-lmk/CMakeLists.txt index 371aef0..ef7722c 100644 --- a/src/resourced-memory-lmk/CMakeLists.txt +++ b/src/resourced-memory-lmk/CMakeLists.txt @@ -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) diff --git a/src/resourced-memory-lmk/resourced-memory-lmk.c b/src/resourced-memory-lmk/resourced-memory-lmk.c index 3ed072b..0f2afa1 100644 --- a/src/resourced-memory-lmk/resourced-memory-lmk.c +++ b/src/resourced-memory-lmk/resourced-memory-lmk.c @@ -21,9 +21,9 @@ #include #include -#include -#include -#include +#include +#include +#include #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, };