/* SPDX-License-Identifier: LGPL-2.1+ */
-//#include <stdio_ext.h>
-
-//#include "alloc-util.h"
-//#include "fd-util.h"
-//#include "fileio.h"
-//#include "format-table.h"
-//#include "gunicode.h"
-//#include "pager.h"
-//#include "parse-util.h"
-//#include "string-util.h"
-//#include "terminal-util.h"
-//#include "time-util.h"
-//#include "utf8.h"
+#include <stdio_ext.h>
+
+#include "alloc-util.h"
+#include "fd-util.h"
+#include "fileio.h"
+#include "format-table.h"
+#include "gunicode.h"
+#include "pager.h"
+#include "parse-util.h"
+#include "string-util.h"
+#include "terminal-util.h"
+#include "time-util.h"
+#include "utf8.h"
#include "util.h"
#define DEFAULT_WEIGHT 100
return 0;
}
+#if 0 /// UNNEEDED by elogind
int table_dup_cell(Table *t, TableCell *cell) {
size_t i;
t->data[t->n_cells++] = table_data_ref(t->data[i]);
return 0;
}
+#endif // 0
static int table_dedup_cell(Table *t, TableCell *cell) {
TableData *nd, *od;
return t->data[i];
}
+#if 0 /// UNNEEDED by elogind
int table_set_minimum_width(Table *t, TableCell *cell, size_t minimum_width) {
int r;
table_get_data(t, cell)->weight = weight;
return 0;
}
+#endif // 0
int table_set_align_percent(Table *t, TableCell *cell, unsigned percent) {
int r;
return 0;
}
+#if 0 /// UNNEEDED by elogind
int table_set_ellipsize_percent(Table *t, TableCell *cell, unsigned percent) {
int r;
table_get_data(t, cell)->color = empty_to_null(color);
return 0;
}
+#endif // 0
int table_add_many_internal(Table *t, TableDataType first_type, ...) {
TableDataType type;
return t->n_cells / t->n_columns;
}
+#if 0 /// UNNEEDED by elogind
size_t table_get_columns(Table *t) {
if (!t)
return 0;
assert(t->n_columns > 0);
return t->n_columns;
}
+#endif // 0