summaryrefslogtreecommitdiffstats
path: root/libsmartcols/src/libsmartcols.h.in
diff options
context:
space:
mode:
authorOndrej Oprala2014-03-17 11:46:17 +0100
committerKarel Zak2014-04-03 12:29:15 +0200
commit0b0ab9ff96f078e2d952206093c554849741dffa (patch)
treed0a84560975245b867dd9adae5b214d27a265711 /libsmartcols/src/libsmartcols.h.in
parentlibsmartcols: add basic files (diff)
downloadkernel-qcow2-util-linux-0b0ab9ff96f078e2d952206093c554849741dffa.tar.gz
kernel-qcow2-util-linux-0b0ab9ff96f078e2d952206093c554849741dffa.tar.xz
kernel-qcow2-util-linux-0b0ab9ff96f078e2d952206093c554849741dffa.zip
libsmartcols: add iterator
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libsmartcols/src/libsmartcols.h.in')
-rw-r--r--libsmartcols/src/libsmartcols.h.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/libsmartcols/src/libsmartcols.h.in b/libsmartcols/src/libsmartcols.h.in
index 84bbb825f..46a06a0ce 100644
--- a/libsmartcols/src/libsmartcols.h.in
+++ b/libsmartcols/src/libsmartcols.h.in
@@ -19,6 +19,20 @@ extern "C" {
#define LIBSMARTCOLS_VERSION "@LIBSMARTCOLS_VERSION@"
+struct libscols_iter;
+
+
+/* iter.c */
+enum {
+
+ SCOLS_ITER_FORWARD = 0,
+ SCOLS_ITER_BACKWARD
+};
+
+extern struct libscols_iter *scols_new_iter(int direction);
+extern void scols_free_iter(struct libscols_iter *itr);
+extern void scols_reset_iter(struct libscols_iter *itr, int direction);
+extern int scols_iter_get_direction(struct libscols_iter *itr);
#ifdef __cplusplus
}