diff options
author | Karel Zak | 2014-12-15 14:13:25 +0100 |
---|---|---|
committer | Karel Zak | 2015-01-06 16:19:02 +0100 |
commit | fc79d3ab446522cbcc15b7fd8bb9083bfa356b61 (patch) | |
tree | 8a6b2c616ee041515d5e002810632138f28eea89 /libmount/src/libmount.h.in | |
parent | ipcrm: fix usage (diff) | |
download | kernel-qcow2-util-linux-fc79d3ab446522cbcc15b7fd8bb9083bfa356b61.tar.gz kernel-qcow2-util-linux-fc79d3ab446522cbcc15b7fd8bb9083bfa356b61.tar.xz kernel-qcow2-util-linux-fc79d3ab446522cbcc15b7fd8bb9083bfa356b61.zip |
libmount: split monitor initialization
The patch introduces mnt_monitor_enable_*() functions (now for
userspace only) to make the API easy to use for high-level purpose.
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/libmount.h.in')
-rw-r--r-- | libmount/src/libmount.h.in | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libmount/src/libmount.h.in b/libmount/src/libmount.h.in index b6e3dd308..db9b2542d 100644 --- a/libmount/src/libmount.h.in +++ b/libmount/src/libmount.h.in @@ -541,11 +541,10 @@ extern struct libmnt_monitor *mnt_new_monitor(void); extern void mnt_ref_monitor(struct libmnt_monitor *mn); extern void mnt_unref_monitor(struct libmnt_monitor *mn); -extern int mnt_monitor_userspace_get_fd(struct libmnt_monitor *mn, const char *filename); -extern int mnt_monitor_get_events(struct libmnt_monitor *mn, int fd, unsigned int *event); -extern const char *mnt_monitor_get_filename(struct libmnt_monitor *mn, int fd); -extern int mnt_monitor_is_changed(struct libmnt_monitor *mn, int fd); +extern int mnt_monitor_enable_userspace(struct libmnt_monitor *mn, + int enable, const char *filename); +extern int mnt_monitor_userspace_get_fd(struct libmnt_monitor *mn); /* context.c */ |