==> include/mesh/top_ui_net.h <==1/* @ajax/mesh-top-ui-net: mesh-top's network panes (crates/mesh-top src/ui.rs, "network" and
2 * "7 net"): the Net tab (the link matrix, every directed link's frames by kind, every machine's
3 * interfaces), a machine panel's Network box and the overview's network cells. */
4#ifndef MESH_TOP_UI_NET_H
5#define MESH_TOP_UI_NET_H
6
7#include "mesh/top_ui_kit.h"
8
9/* The overview's sparkline width (one column per NIC sample: a second). */
10#define MT_OV_SPARK 14
11
12/* The overview's network cells (3, or 4 when wide); returns the count. */
13size_t mt_net_cells(mt_frame *f, const mt_machine *m, bool wide, tui_table_cell *out);
14/* The Network box's lines for one machine, width columns (compact: one short line per link). */
15void mt_net_lines(mt_frame *f, const mt_machine *m, const mt_snapshot *s, uint16_t width, bool compact, mt_lines *out);
16void mt_draw_net_box(mt_frame *f, tui_rect area, const mt_machine *m, const mt_lines *lines);
17/* The Net tab. */
18void mt_draw_net(mt_frame *f, tui_rect area, const mt_app *app);
19
20#endif