-PROJECT(libpass C)
+PROJECT(libpass-resource-monitor C)
-SET(NAME pass)
+SET(NAME_PASS pass)
+SET(NAME_PASS_RESOURCE_MONITOR pass-resource-monitor)
SET(VERSION_MAJOR 0)
SET(VERSION "${VERSION_MAJOR}.1.0")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -lrt")
SET(CMAKE_EXE_LINKER_FLAGS "-pie")
-SET(SRCS ./tmonitor/tmonitor.c)
+SET(SRCS ./resource-monitor/resource-monitor.c)
ADD_LIBRARY( ${PROJECT_NAME} SHARED ${SRCS})
TARGET_LINK_LIBRARIES( ${PROJECT_NAME} ${pkgs_LDFLAGS} -ldl -Wl,-z,nodelete,--no-undefined)
SET_TARGET_PROPERTIES( ${PROJECT_NAME} PROPERTIES SOVERSION ${VERSION_MAJOR})
SET_TARGET_PROPERTIES( ${PROJECT_NAME} PROPERTIES VERSION ${VERSION})
-SET_TARGET_PROPERTIES( ${PROJECT_NAME} PROPERTIES OUTPUT_NAME ${NAME})
+SET_TARGET_PROPERTIES( ${PROJECT_NAME} PROPERTIES OUTPUT_NAME ${NAME_PASS_RESOURCE_MONITOR})
CONFIGURE_FILE( ${CMAKE_SOURCE_DIR}/packaging/${PROJECT_NAME}.pc.in
${CMAKE_SOURCE_DIR}/packaging/${PROJECT_NAME}.pc
@ONLY)
INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ${LIBDIR})
-INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/tmonitor/
- DESTINATION ${INCLUDEDIR}/${NAME}/
+INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/resource-monitor/
+ DESTINATION ${INCLUDEDIR}/${NAME_PASS}/
FILES_MATCHING PATTERN "*.h")
INSTALL(FILES ${CMAKE_SOURCE_DIR}/packaging/${PROJECT_NAME}.pc
DESTINATION ${LIBDIR}/pkgconfig)
/*
- * PASS (Power Aware System Service) - Tizen Monitor Library
+ * PASS (Power Aware System Service) - Resource Monitor Library
*
* Copyright (c) 2022 Samsung Electronics Co., Ltd.
*
#include <util/log.h>
#include <util/request.h>
#include <util/resource.h>
-#include <tmonitor/tmonitor.h>
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
+#include "resource-monitor.h"
+
#define REQUEST_SERVER_IP "127.0.0.1"
#define REQUEST_SERVER_PORT 10001
#define EXPORT __attribute__ ((visibility("default")))
#endif
-struct tmonitor_client {
+struct pass_resource_monitor_client {
int id;
int period;
int (*func)(void *data, void *user_data);
void *user_data;
};
-static GList *g_tmonitor_client_head;
+static GList *g_pass_resource_monitor_client_head;
static GMutex g_mutex;
-void add_client_to_list(struct tmonitor_client *client)
+void add_client_to_list(struct pass_resource_monitor_client *client)
{
if (!client)
return;
g_mutex_lock(&g_mutex);
- g_tmonitor_client_head =
- g_list_append(g_tmonitor_client_head, (gpointer)client);
+ g_pass_resource_monitor_client_head =
+ g_list_append(g_pass_resource_monitor_client_head, (gpointer)client);
g_mutex_unlock(&g_mutex);
}
-void remove_client_from_list(struct tmonitor_client *client)
+void remove_client_from_list(struct pass_resource_monitor_client *client)
{
if (!client)
return;
g_mutex_lock(&g_mutex);
- g_tmonitor_client_head =
- g_list_remove(g_tmonitor_client_head, (gpointer)client);
+ g_pass_resource_monitor_client_head =
+ g_list_remove(g_pass_resource_monitor_client_head, (gpointer)client);
g_mutex_unlock(&g_mutex);
}
-static struct tmonitor_client *find_client_by_id(int id)
+static struct pass_resource_monitor_client *find_client_by_id(int id)
{
- struct tmonitor_client *client;
+ struct pass_resource_monitor_client *client;
GList *node;
- for (node = g_tmonitor_client_head;
+ for (node = g_pass_resource_monitor_client_head;
node != NULL;
node = node->next) {
client = node->data;
}
EXPORT
-int tmonitor_init(void)
+int pass_resource_monitor_init(void)
{
- struct tmonitor_client *client;
+ struct pass_resource_monitor_client *client;
struct sockaddr_in server_addr;
int ret = -EIO;
- client = malloc(sizeof(struct tmonitor_client));
+ client = malloc(sizeof(struct pass_resource_monitor_client));
if (!client) {
_E("[libpass] failed to allocate memory");
return -ENOMEM;
}
EXPORT
-int tmonitor_exit(int id)
+int pass_resource_monitor_exit(int id)
{
- struct tmonitor_client *client;
+ struct pass_resource_monitor_client *client;
client = find_client_by_id(id);
if (!client) {
}
EXPORT
-int tmonitor_get_resource_count(int id, int resource_type)
+int pass_resource_monitor_get_resource_count(int id, int resource_type)
{
char buffer[GENERIC_BUFF_MAX + 1];
int buffer_len;
}
EXPORT
-int tmonitor_create_resource(int id, int resource_type)
+int pass_resource_monitor_create_resource(int id, int resource_type)
{
char buffer[GENERIC_BUFF_MAX + 1];
int buffer_len;
}
EXPORT
-int tmonitor_delete_resource(int id, int resource_id)
+int pass_resource_monitor_delete_resource(int id, int resource_id)
{
char buffer[GENERIC_BUFF_MAX + 1];
int buffer_len;
}
EXPORT
-int tmonitor_set_resource_ctrl(int id, int resource_id, u_int64_t ctrl_id, int value)
+int pass_resource_monitor_set_resource_ctrl(int id, int resource_id, u_int64_t ctrl_id, int value)
{
char buffer[GENERIC_BUFF_MAX + 1];
int buffer_len;
}
EXPORT
-int tmonitor_set_resource_attr(int id, int resource_id, u_int64_t attr_mask)
+int pass_resource_monitor_set_resource_attr(int id, int resource_id, u_int64_t attr_mask)
{
return handle_resource_attr(REQUEST_SET_RESOURCE_ATTR, id, resource_id, attr_mask);
}
EXPORT
-int tmonitor_unset_resource_attr(int id, int resource_id, u_int64_t attr_mask)
+int pass_resource_monitor_unset_resource_attr(int id, int resource_id, u_int64_t attr_mask)
{
return handle_resource_attr(REQUEST_UNSET_RESOURCE_ATTR, id, resource_id, attr_mask);
}
EXPORT
-bool tmonitor_is_resource_attr_supported(int id, int resource_id, u_int64_t attr_id)
+bool pass_resource_monitor_is_resource_attr_supported(int id, int resource_id, u_int64_t attr_id)
{
char buffer[GENERIC_BUFF_MAX + 1];
int buffer_len;
}
EXPORT
-int tmonitor_update(int id)
+int pass_resource_monitor_update(int id)
{
char buffer[GENERIC_BUFF_MAX + 1];
int buffer_len;
}
EXPORT
-int tmonitor_update_resource(int id, int resource_id)
+int pass_resource_monitor_update_resource(int id, int resource_id)
{
char buffer[GENERIC_BUFF_MAX + 1];
int buffer_len;
}
-static int tmonitor_get_json(int id, char *json_string, int request_type, ...)
+static int pass_resource_monitor_get_json(int id, char *json_string, int request_type, ...)
{
int buffer_len, response_req, ret, resource_id;
u_int64_t attr_id;
}
EXPORT
-int tmonitor_get_resource_json(int id, int resource_id, char *json_string)
+int pass_resource_monitor_get_resource_json(int id, int resource_id, char *json_string)
{
- return tmonitor_get_json(id, json_string, REQUEST_GET_RESOURCE_JSON, resource_id);
+ return pass_resource_monitor_get_json(id, json_string, REQUEST_GET_RESOURCE_JSON, resource_id);
}
EXPORT
-int tmonitor_get_value_json(int id, int resource_id, u_int64_t attr_id, char *json_string)
+int pass_resource_monitor_get_value_json(int id, int resource_id, u_int64_t attr_id, char *json_string)
{
- return tmonitor_get_json(id, json_string, REQUEST_GET_VALUE_JSON, resource_id, attr_id);
+ return pass_resource_monitor_get_json(id, json_string, REQUEST_GET_VALUE_JSON, resource_id, attr_id);
}
EXPORT
-int tmonitor_get_value_int(int id, int resource_id, u_int64_t attr_id, int32_t *value)
+int pass_resource_monitor_get_value_int(int id, int resource_id, u_int64_t attr_id, int32_t *value)
{
char buffer[GENERIC_BUFF_MAX + 1];
int buffer_len;
}
EXPORT
-int tmonitor_get_value_int64(int id, int resource_id, u_int64_t attr_id, int64_t *value)
+int pass_resource_monitor_get_value_int64(int id, int resource_id, u_int64_t attr_id, int64_t *value)
{
char buffer[GENERIC_BUFF_MAX + 1];
int buffer_len;
}
EXPORT
-int tmonitor_get_value_uint(int id, int resource_id, u_int64_t attr_id, u_int32_t *value)
+int pass_resource_monitor_get_value_uint(int id, int resource_id, u_int64_t attr_id, u_int32_t *value)
{
char buffer[GENERIC_BUFF_MAX + 1];
int buffer_len;
}
EXPORT
-int tmonitor_get_value_uint64(int id, int resource_id, u_int64_t attr_id, u_int64_t *value)
+int pass_resource_monitor_get_value_uint64(int id, int resource_id, u_int64_t attr_id, u_int64_t *value)
{
char buffer[GENERIC_BUFF_MAX + 1];
int buffer_len;
}
EXPORT
-int tmonitor_get_value_double(int id, int resource_id, u_int64_t attr_id, double *value)
+int pass_resource_monitor_get_value_double(int id, int resource_id, u_int64_t attr_id, double *value)
{
char buffer[GENERIC_BUFF_MAX + 1];
int buffer_len;
}
EXPORT
-int tmonitor_get_value_string(int id, int resource_id, u_int64_t attr_id, char *value)
+int pass_resource_monitor_get_value_string(int id, int resource_id, u_int64_t attr_id, char *value)
{
char buffer[GENERIC_BUFF_MAX + 1];
int buffer_len;
}
static int
-tmonitor_get_array(int id, int res_id, u_int64_t attr_id, int data_type, void **array, int *length)
+pass_resource_monitor_get_array(int id, int res_id, u_int64_t attr_id, int data_type, void **array, int *length)
{
char *array_item, *array_str, *buffer;
int array_len, array_type;
}
EXPORT
-int tmonitor_get_array_int(int id, int res_id, u_int64_t attr_id, int32_t **array, int *length)
+int pass_resource_monitor_get_array_int(int id, int res_id, u_int64_t attr_id, int32_t **array, int *length)
{
- return tmonitor_get_array(id, res_id, attr_id, DATA_TYPE_INT, (void **)array, length);
+ return pass_resource_monitor_get_array(id, res_id, attr_id, DATA_TYPE_INT, (void **)array, length);
}
EXPORT
-int tmonitor_get_array_int64(int id, int res_id, u_int64_t attr_id, int64_t **array, int *length)
+int pass_resource_monitor_get_array_int64(int id, int res_id, u_int64_t attr_id, int64_t **array, int *length)
{
- return tmonitor_get_array(id, res_id, attr_id, DATA_TYPE_INT64, (void **)array, length);
+ return pass_resource_monitor_get_array(id, res_id, attr_id, DATA_TYPE_INT64, (void **)array, length);
}
EXPORT
-int tmonitor_get_array_uint(int id, int res_id, u_int64_t attr_id, u_int32_t **array, int *length)
+int pass_resource_monitor_get_array_uint(int id, int res_id, u_int64_t attr_id, u_int32_t **array, int *length)
{
- return tmonitor_get_array(id, res_id, attr_id, DATA_TYPE_UINT, (void **)array, length);
+ return pass_resource_monitor_get_array(id, res_id, attr_id, DATA_TYPE_UINT, (void **)array, length);
}
EXPORT
-int tmonitor_get_array_uint64(int id, int res_id, u_int64_t attr_id, u_int64_t **array, int *length)
+int pass_resource_monitor_get_array_uint64(int id, int res_id, u_int64_t attr_id, u_int64_t **array, int *length)
{
- return tmonitor_get_array(id, res_id, attr_id, DATA_TYPE_UINT64, (void **)array, length);
+ return pass_resource_monitor_get_array(id, res_id, attr_id, DATA_TYPE_UINT64, (void **)array, length);
}
EXPORT
-int tmonitor_get_array_double(int id, int res_id, u_int64_t attr_id, double **array, int *length)
+int pass_resource_monitor_get_array_double(int id, int res_id, u_int64_t attr_id, double **array, int *length)
{
- return tmonitor_get_array(id, res_id, attr_id, DATA_TYPE_DOUBLE, (void **)array, length);
+ return pass_resource_monitor_get_array(id, res_id, attr_id, DATA_TYPE_DOUBLE, (void **)array, length);
}
EXPORT
-int tmonitor_get_array_string(int id, int res_id, u_int64_t attr_id, char ***array, int *length)
+int pass_resource_monitor_get_array_string(int id, int res_id, u_int64_t attr_id, char ***array, int *length)
{
- return tmonitor_get_array(id, res_id, attr_id, DATA_TYPE_STRING, (void **)array, length);
+ return pass_resource_monitor_get_array(id, res_id, attr_id, DATA_TYPE_STRING, (void **)array, length);
}
/*
- * PASS (Power Aware System Service) - Tizen Monitor Header File
+ * PASS (Power Aware System Service) - Resource Monitor Header File
*
* Copyright (c) 2022 Samsung Electronics Co., Ltd.
*
* limitations under the License.
*/
-#ifndef __TMONITOR__
-#define __TMONITOR__
+#ifndef __RESOURCE_MONITOR__
+#define __RESOURCE_MONITOR__
#include <stdio.h>
#include <stdbool.h>
#define PROCESS_GROUP_CTRL_ROOT_PID BIT(0)
/**
- * @brief Initialize the tizen monitor
- * @return @c positive integer as tizen monitor id on success, otherwise a negative error value
+ * @brief Initialize the resource monitor
+ * @return @c positive integer as resource monitor id on success, otherwise a negative error value
*/
-int tmonitor_init(void);
+int pass_resource_monitor_init(void);
/**
* @brief Exit the tizem monitor
- * @param[in] Id of tizen monitor which be returnted by tmonitor_init
+ * @param[in] Id of resource monitor which be returnted by pass_resource_monitor_init
* @return @c 0 on success, otherwise a negative error value
*/
-int tmonitor_exit(int id);
+int pass_resource_monitor_exit(int id);
/**
* @brief Get the count of supported resources according to resource type
- * @param[in] Tizen monitor id
+ * @param[in] Resource monitor id
* @param[in] Resource type
* @return @c positive integer as resource count on success, otherwise a negative error value
*/
-int tmonitor_get_resource_count(int id, int resource_type);
+int pass_resource_monitor_get_resource_count(int id, int resource_type);
/**
* @brief Create resource for given resource_type
- * @param[in] Tizen monitor id which be returnted by tmonitor_init
+ * @param[in] Resource monitor id which be returnted by pass_resource_monitor_init
* @param[in] Resource type
* @return @c positive integer as resource id on success, otherwise a negative error value
*/
-int tmonitor_create_resource(int id, int resource_type);
+int pass_resource_monitor_create_resource(int id, int resource_type);
/**
* @brief Delete resource of given resource id
- * @param[in] Tizen monitor id which be returnted by tmonitor_init
+ * @param[in] Resource monitor id which be returnted by pass_resource_monitor_init
* @param[in] Resource id
* @return @c 0 on success, otherwise a negative error value
*/
-int tmonitor_delete_resource(int id, int resource_id);
+int pass_resource_monitor_delete_resource(int id, int resource_id);
/**
* @brief Set the resource control with value which is diffierential according to resource control id
- * @param[in] Tizen monitor id
+ * @param[in] Resource monitor id
* @param[in] Resource id
* @param[in] Resource control id
* @param[in] Value for resource control id
* @return @c 0 on success, otherwise a negative error value
*/
-int tmonitor_set_resource_ctrl(int id, int resource_id, u_int64_t ctrl_id, int value);
+int pass_resource_monitor_set_resource_ctrl(int id, int resource_id, u_int64_t ctrl_id, int value);
/**
* @brief Set the interested attributes for monitoring
- * @param[in] Tizen monitor id
+ * @param[in] Resource monitor id
* @param[in] Resource id
* @param[in] Attribute mask including the various attributes
* @return @c 0 on success, otherwise a negative error value
*/
-int tmonitor_set_resource_attr(int id, int resource_id, u_int64_t attr_mask);
+int pass_resource_monitor_set_resource_attr(int id, int resource_id, u_int64_t attr_mask);
/**
* @brief Unset the interested attributes for monitoring
- * @param[in] Tizen monitor id
+ * @param[in] Resource monitor id
* @param[in] Resource id
* @param[in] Attribute mask including the various attributes
* @return @c 0 on success, otherwise a negative error value
*/
-int tmonitor_unset_resource_attr(int id, int resource_id, u_int64_t attr_mask);
+int pass_resource_monitor_unset_resource_attr(int id, int resource_id, u_int64_t attr_mask);
/**
* @brief Check whether a resouce attribute is supported or not
- * @param[in] Tizen monitor id
+ * @param[in] Resource monitor id
* @param[in] Resource id
* @param[in] Resource attribute id
* @return @c 0 on success, otherwise a negative error value
*/
-bool tmonitor_is_resource_attr_supported(int id, int resource_id, u_int64_t attr_id);
+bool pass_resource_monitor_is_resource_attr_supported(int id, int resource_id, u_int64_t attr_id);
/**
* @brief Update value of the interested attributes for all created resource
- * @param[in] Tizen monitor id
+ * @param[in] Resource monitor id
* @return @c 0 on success, otherwise a negative error value
*/
-int tmonitor_update(int id);
+int pass_resource_monitor_update(int id);
/**
* @brief Update value of the interested attributes for a resource
- * @param[in] Tizen monitor id
+ * @param[in] Resource monitor id
* @param[in] Resource id
* @return @c 0 on success, otherwise a negative error value
*/
-int tmonitor_update_resource(int id, int resource_id);
+int pass_resource_monitor_update_resource(int id, int resource_id);
/**
* @brief Get all value in interesting attributes of resource by the JSON string format
- * @param[in] Tizen monitor id
+ * @param[in] Resource monitor id
* @param[in] Resource id
* @param[out] JSON type string for resource
* @return @c positive integer as resource count on success, otherwise a negative error value
*/
-int tmonitor_get_resource_json(int id, int resource_id, char *json_string);
+int pass_resource_monitor_get_resource_json(int id, int resource_id, char *json_string);
/**
* @brief Get [int/int64/uint/uint64/double/string] value of resource attribute
- * @param[in] Tizen monitor id
+ * @param[in] Resource monitor id
* @param[in] Resource id
* @param[in] Resource attribute id
* @param[out] Value retrieved from resource attribute
* @return @ 0 on success, otherwise a negative error value
*/
-int tmonitor_get_value_json(int id, int resource_id, u_int64_t attr, char *json_string);
-int tmonitor_get_value_int(int id, int resource_id, u_int64_t attr, int32_t *value);
-int tmonitor_get_value_int64(int id, int resource_id, u_int64_t attr, int64_t *value);
-int tmonitor_get_value_uint(int id, int resource_id, u_int64_t attr, u_int32_t *value);
-int tmonitor_get_value_uint64(int id, int resource_id, u_int64_t attr, u_int64_t *value);
-int tmonitor_get_value_double(int id, int resource_id, u_int64_t attr, double *value);
-int tmonitor_get_value_string(int id, int resource_id, u_int64_t attr, char *value);
+int pass_resource_monitor_get_value_json(int id, int resource_id, u_int64_t attr, char *json_string);
+int pass_resource_monitor_get_value_int(int id, int resource_id, u_int64_t attr, int32_t *value);
+int pass_resource_monitor_get_value_int64(int id, int resource_id, u_int64_t attr, int64_t *value);
+int pass_resource_monitor_get_value_uint(int id, int resource_id, u_int64_t attr, u_int32_t *value);
+int pass_resource_monitor_get_value_uint64(int id, int resource_id, u_int64_t attr, u_int64_t *value);
+int pass_resource_monitor_get_value_double(int id, int resource_id, u_int64_t attr, double *value);
+int pass_resource_monitor_get_value_string(int id, int resource_id, u_int64_t attr, char *value);
/**
* @brief Get [int/int64/uint/uint64/double/string] array of resource attribute
- * @param[in] Tizen monitor id
+ * @param[in] Resource monitor id
* @param[in] Resource id
* @param[in] Resource attribute id
* @param[out] Array retrieved from resource attribute
* @param[out] Length of array
* @return @ 0 on success, otherwise a negative error value
*/
-int tmonitor_get_array_int(int id, int res_id, u_int64_t attr, int32_t **array, int *length);
-int tmonitor_get_array_int64(int id, int res_id, u_int64_t attr, int64_t **array, int *length);
-int tmonitor_get_array_uint(int id, int res_id, u_int64_t attr, u_int32_t **array, int *length);
-int tmonitor_get_array_uint64(int id, int res_id, u_int64_t attr, u_int64_t **array, int *length);
-int tmonitor_get_array_double(int id, int res_id, u_int64_t attr, double **array, int *length);
-int tmonitor_get_array_string(int id, int res_id, u_int64_t attr, char ***array, int *length);
+int pass_resource_monitor_get_array_int(int id, int res_id, u_int64_t attr, int32_t **array, int *length);
+int pass_resource_monitor_get_array_int64(int id, int res_id, u_int64_t attr, int64_t **array, int *length);
+int pass_resource_monitor_get_array_uint(int id, int res_id, u_int64_t attr, u_int32_t **array, int *length);
+int pass_resource_monitor_get_array_uint64(int id, int res_id, u_int64_t attr, u_int64_t **array, int *length);
+int pass_resource_monitor_get_array_double(int id, int res_id, u_int64_t attr, double **array, int *length);
+int pass_resource_monitor_get_array_string(int id, int res_id, u_int64_t attr, char ***array, int *length);
#ifdef __cplusplus
}
#endif
-#endif /* __TMONITOR__ */
+#endif /* __RESOURCE_MONITOR__ */
# Package Information for pkg-config
-package_name=pass
+package_name=pass-resource-monitor
prefix=@PREFIX@
exec_prefix=@EXEC_PREFIX@
libdir=@LIBDIR@
-includedir=/usr/include/${package_name}
+includedir=/usr/include/pass
Name: ${package_name}
Description: ${package_name} library
%define daemon_name pass
%define haltest_name pass-haltests
%define unittest_name pass-unittest
-%define libpass_name libpass
+%define libpass_resource_monitor_name libpass-resource-monitor
Name: %{daemon_name}
Summary: Power Aware System Service
License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
Source1: %{name}.manifest
-Source2: %{libpass_name}.manifest
+Source2: %{libpass_resource_monitor_name}.manifest
BuildRequires: cmake
BuildRequires: pkgconfig(dlog)
%description -n %{unittest_name}
PASS unit test package with gtest
-%package -n %{libpass_name}
+%package -n %{libpass_resource_monitor_name}
Summary: Tizen Monitor Library package
Group: Development/Libraries
Requires: pass = %{version}-%{release}
-%description -n %{libpass_name}
+%description -n %{libpass_resource_monitor_name}
Tizen Monitor Library package
-%package -n %{libpass_name}-devel
+%package -n %{libpass_resource_monitor_name}-devel
Summary: Tizen Monitor Headler Files
Group: Development/Libraries
Requires: pass = %{version}-%{release}
-%description -n %{libpass_name}-devel
+%description -n %{libpass_resource_monitor_name}-devel
Tizen Monitor Headler Files
%prep
%defattr(-,root,root,-)
%{_bindir}/pass-unittests
-%files -n %{libpass_name}
+%files -n %{libpass_resource_monitor_name}
%license LICENSE
-%manifest %{libpass_name}.manifest
+%manifest %{libpass_resource_monitor_name}.manifest
%defattr(-,root,root,-)
%{_libdir}/*.so*
-%files -n %{libpass_name}-devel
+%files -n %{libpass_resource_monitor_name}-devel
%license LICENSE
-%manifest %{libpass_name}.manifest
+%manifest %{libpass_resource_monitor_name}.manifest
%defattr(-,root,root,-)
%{_includedir}/%{name}/*.h
-%{_libdir}/pkgconfig/%{libpass_name}.pc
+%{_libdir}/pkgconfig/%{libpass_resource_monitor_name}.pc
%{_libdir}/*.so*
#include <util/log.h>
#include <util/resource.h>
-#include <tmonitor/tmonitor.h>
+#include <resource-monitor/resource-monitor.h>
static int battery_get_info(const struct resource *res,
const struct resource_attribute *attr,
#include <util/log.h>
#include <util/resource.h>
-#include <tmonitor/tmonitor.h>
+#include <resource-monitor/resource-monitor.h>
struct bus_context {
char *device_name;
#include <util/log.h>
#include <util/resource.h>
-#include <tmonitor/tmonitor.h>
+#include <resource-monitor/resource-monitor.h>
struct cpu_context {
char *device_name;
#include <util/resource.h>
#include <util/gdbus-util.h>
-#include <tmonitor/tmonitor.h>
+#include <resource-monitor/resource-monitor.h>
#define DBUS_ENLIGHTENMENT_NAME "org.enlightenment.wm"
#define DBUS_ENLIGHTENMENT_PATH "/org/enlightenment/wm"
#include <util/log.h>
#include <util/resource.h>
-#include <tmonitor/tmonitor.h>
+#include <resource-monitor/resource-monitor.h>
struct gpu_context {
char *device_name;
#include <util/resource.h>
#include <util/kernel.h>
-#include <tmonitor/tmonitor.h>
+#include <resource-monitor/resource-monitor.h>
#define PROC_MEM_INFO_MEM_AVAILABLE "MemAvailable"
#define PROC_MEM_INFO_MEM_FREE "MemFree"
#include <util/kernel.h>
#include <linux/taskstats.h>
-#include <tmonitor/tmonitor.h>
+#include <resource-monitor/resource-monitor.h>
#define PROC_DIR_PATH "/proc/"
#include <util/resource.h>
#include <util/kernel.h>
-#include <tmonitor/tmonitor.h>
+#include <resource-monitor/resource-monitor.h>
struct process_context {
pid_t tgid;
#include <util/resource.h>
#include <util/kernel.h>
-#include <tmonitor/tmonitor.h>
+#include <resource-monitor/resource-monitor.h>
struct system_resouce_data {
struct cpu_stat prev_avg;