summaryrefslogtreecommitdiffstats
path: root/src/utils/libsmartcols/src/smartcolsP.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/libsmartcols/src/smartcolsP.h')
-rw-r--r--src/utils/libsmartcols/src/smartcolsP.h16
1 files changed, 3 insertions, 13 deletions
diff --git a/src/utils/libsmartcols/src/smartcolsP.h b/src/utils/libsmartcols/src/smartcolsP.h
index e36bb51..5e9b9ec 100644
--- a/src/utils/libsmartcols/src/smartcolsP.h
+++ b/src/utils/libsmartcols/src/smartcolsP.h
@@ -15,6 +15,7 @@
#include "list.h"
#include "strutils.h"
#include "color-names.h"
+#include "jsonwrt.h"
#include "debug.h"
#include "libsmartcols.h"
@@ -224,8 +225,8 @@ struct libscols_table {
struct libscols_symbols *symbols;
struct libscols_cell title; /* optional table title (for humans) */
- int indent; /* indentation counter */
- int indent_last_sep;/* last printed has been line separator */
+ struct ul_jsonwrt json; /* JSON formatting */
+
int format; /* SCOLS_FMT_* */
size_t termlines_used; /* printed line counter */
@@ -357,17 +358,6 @@ int __scols_print_range(struct libscols_table *tb,
struct libscols_iter *itr,
struct libscols_line *end);
-/*
- * fput.c
- */
-extern void fput_indent(struct libscols_table *tb);
-extern void fput_table_open(struct libscols_table *tb);
-extern void fput_table_close(struct libscols_table *tb);
-extern void fput_children_open(struct libscols_table *tb);
-extern void fput_children_close(struct libscols_table *tb);
-extern void fput_line_open(struct libscols_table *tb);
-extern void fput_line_close(struct libscols_table *tb, int last, int last_in_table);
-
static inline int is_tree_root(struct libscols_line *ln)
{
return ln && !ln->parent && !ln->parent_group;