aboutsummaryrefslogtreecommitdiffstats
path: root/libmount/src/monitor.h
diff options
context:
space:
mode:
Diffstat (limited to 'libmount/src/monitor.h')
-rw-r--r--libmount/src/monitor.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libmount/src/monitor.h b/libmount/src/monitor.h
index a72658e953..6c6ba44506 100644
--- a/libmount/src/monitor.h
+++ b/libmount/src/monitor.h
@@ -8,6 +8,7 @@ struct monitor_opers;
struct monitor_entry {
int fd; /* private entry file descriptor */
+ int id; /* external identifier (-1 for undefined) */
char *path; /* path to the monitored file */
int type; /* MNT_MONITOR_TYPE_* */
uint32_t events; /* wanted epoll events */
@@ -36,7 +37,7 @@ struct monitor_opers {
};
int monitor_modify_epoll(struct libmnt_monitor *mn, struct monitor_entry *me, int enable);
-struct monitor_entry *monitor_get_entry(struct libmnt_monitor *mn, int type);
+struct monitor_entry *monitor_get_entry(struct libmnt_monitor *mn, int type, int id);
struct monitor_entry *monitor_new_entry(struct libmnt_monitor *mn);
void free_monitor_entry(struct monitor_entry *me);