summaryrefslogtreecommitdiff
path: root/include/monitor/monitor.h
diff options
context:
space:
mode:
authorYoungjae Cho <y0.cho@samsung.com>2022-11-07 16:29:01 +0900
committerChanwoo Choi <cw00.choi@samsung.com>2022-12-07 17:25:07 +0900
commit80ec27021c5c44f6a2e45677ead8daeb29bb7d73 (patch)
treea7f5dcf39004ec2aad79c17163d2547987cd99c8 /include/monitor/monitor.h
parenta5249468aa0f3014230597cd737b903225dde8ac (diff)
downloadpass-80ec27021c5c44f6a2e45677ead8daeb29bb7d73.tar.gz
pass-80ec27021c5c44f6a2e45677ead8daeb29bb7d73.tar.bz2
pass-80ec27021c5c44f6a2e45677ead8daeb29bb7d73.zip
resource: Operate based on resource idaccepted/tizen/7.0/unified/20221209.015651
The resource-manager of libsyscommon has been revamped to work based on resource id instead of actual instance. Therefore the pass doesn't need to manage actual resource instance of libsyscommon anymore. Instead, the only thing to do is managing id of resource instance, which can be used in any place to which resource instance could have been used. Change-Id: I5b47eb6ad9b5743fdb4a71f21cfe32af83300957 Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
Diffstat (limited to 'include/monitor/monitor.h')
-rw-r--r--include/monitor/monitor.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/monitor/monitor.h b/include/monitor/monitor.h
index 036fa63..f5d94f0 100644
--- a/include/monitor/monitor.h
+++ b/include/monitor/monitor.h
@@ -19,14 +19,15 @@
#ifndef __MONITOR_H__
#define __MONITOR_H__
-#include <libsyscommon/resource-manager.h>
+#include <glib.h>
#include <util/thread.h>
#include <util/queue.h>
+#include <util/common.h>
#define MONITOR_POLLING_DURATION 100
struct monitor_command {
- struct syscommon_resman_resource *resource;
+ int resource_id;
volatile bool done;
mtx_t lock;
cnd_t signal;
@@ -49,7 +50,7 @@ void monitor_thread_exit(struct monitor *monitor);
void monitor_command_wait_done(struct monitor_command *cmd);
void monitor_command_submit(struct monitor_command *cmd);
void monitor_command_submit_sync(struct monitor_command *cmd);
-void monitor_command_bind_resource(struct monitor_command *cmd, struct syscommon_resman_resource *res);
+void monitor_command_bind_resource(struct monitor_command *cmd, int resource_id);
void monitor_command_unbind_resource(struct monitor_command *cmd);
int monitor_command_init(struct monitor_command **cmd);
void monitor_command_exit(struct monitor_command *cmd);