-%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
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
%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}
%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
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)
#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"
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)
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,
};