diff options
Diffstat (limited to 'include/monitor/monitor.h')
-rw-r--r-- | include/monitor/monitor.h | 7 |
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); |