summaryrefslogblamecommitdiffstats
path: root/libsmartcols/src/libsmartcols.h.in
blob: 46a06a0ce635e4b3e99d001e67d5b3aef19cecea (plain) (tree)




















                                                        













                                                                       





                            
/*
 * Prints table or tree.
 *
 * Copyright (C) 2014 Ondrej Oprala <ooprala@redhat.com>
 * Copyright (C) 2014 Karel Zak <kzak@redhat.com>
 *
 * This file may be redistributed under the terms of the
 * GNU Lesser General Public License.
 */
#ifndef _LIBSMARTCOLS_H
#define _LIBSMARTCOLS_H

#ifdef __cplusplus
extern "C" {
#endif

#include <stdlib.h>
#include <sys/types.h>

#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
}
#endif

#endif /* _LIBSMARTCOLS_H */