|
FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
Go to the documentation of this file.
65 a->fg_color =
c->attr.fg_color;
71 a->bg_color =
c->attr.bg_color;
99 s =
format (s,
"%s%u",
i ?
";" :
"", codes[
i]);
136 if (c < t->n_header_cols)
247 va_start (arg, n_strings);
248 for (
r = 0;
r < n_rows;
r++)
252 va_arg (arg,
char *));
265 va_start (arg, n_strings);
static table_text_attr_t default_title
#define clib_memcpy(d, s, n)
table_text_attr_align_t align
table_text_attr_color_t fg_color
vnet_hw_if_output_node_runtime_t * r
static table_text_attr_t default_header_row
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
void table_set_cell_fg_color(table_t *t, int c, int r, table_text_attr_color_t v)
#define vec_add1(V, E)
Add 1 element to end of vector (unspecified alignment).
void table_add_header_col(table_t *t, int n_strings,...)
sll srl srl sll sra u16x4 i
static table_cell_t * table_get_cell(table_t *t, int c, int r)
#define vec_validate(V, I)
Make sure vector is long enough for given index (no header, unspecified alignment)
static table_text_attr_t default_body
void table_set_cell_bg_color(table_t *t, int c, int r, table_text_attr_color_t v)
#define vec_free(V)
Free vector's memory (no header).
void table_free(table_t *t)
static table_text_attr_t default_header_col
description fragment has unexpected format
void table_format_title(table_t *t, char *fmt,...)
void table_format_cell(table_t *t, int c, int r, char *fmt,...)
clib_memset(h->entries, 0, sizeof(h->entries[0]) *entries)
u8 * format_text_cell(table_t *t, u8 *s, table_cell_t *c, table_text_attr_t *def, int size)
table_text_attr_color_t bg_color
void table_add_header_row(table_t *t, int n_strings,...)
void table_set_cell_align(table_t *t, int c, int r, table_text_attr_align_t a)
table_text_attr_flags_t flags
#define vec_insert(V, N, M)
Insert N vector elements starting at element M, initialize new elements to zero (no header,...
u8 * format_table(u8 *s, va_list *args)