summaryrefslogtreecommitdiffstats
path: root/shlibs/mount/src/mount.h.in
diff options
context:
space:
mode:
authorKarel Zak2010-01-05 14:58:16 +0100
committerKarel Zak2010-06-03 15:20:10 +0200
commitefab4b61572516f4c7579e345165e0094c1a2450 (patch)
treedb65d4cf4892fcef156681040f3448e696994f85 /shlibs/mount/src/mount.h.in
parentlibmount: add mnt_optstr_* functions (diff)
downloadkernel-qcow2-util-linux-efab4b61572516f4c7579e345165e0094c1a2450.tar.gz
kernel-qcow2-util-linux-efab4b61572516f4c7579e345165e0094c1a2450.tar.xz
kernel-qcow2-util-linux-efab4b61572516f4c7579e345165e0094c1a2450.zip
libmount: add list routines and generic iterator
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'shlibs/mount/src/mount.h.in')
-rw-r--r--shlibs/mount/src/mount.h.in18
1 files changed, 18 insertions, 0 deletions
diff --git a/shlibs/mount/src/mount.h.in b/shlibs/mount/src/mount.h.in
index 3426729bf..696c29409 100644
--- a/shlibs/mount/src/mount.h.in
+++ b/shlibs/mount/src/mount.h.in
@@ -34,6 +34,13 @@ extern "C" {
*/
typedef struct _mnt_cache mnt_cache;
+/**
+ * mnt_iter
+ *
+ * Generic iterator (stores state about lists)
+ */
+typedef struct _mnt_iter mnt_iter;
+
/* version.c */
extern int mnt_parse_version_string(const char *ver_string);
extern int mnt_get_library_version(const char **ver_string);
@@ -67,6 +74,17 @@ extern int mnt_optstr_set_option(char **optstr, const char *name,
const char *value);
extern int mnt_optstr_remove_option(char **optstr, const char *name);
+
+/* iter.c */
+enum {
+
+ MNT_ITER_FORWARD = 0,
+ MNT_ITER_BACKWARD
+};
+extern mnt_iter *mnt_new_iter(int direction);
+extern void mnt_free_iter(mnt_iter *mi);
+extern void mnt_reset_iter(mnt_iter *mi, int direction);
+
#ifdef __cplusplus
}
#endif