1/* @ajax/mesh-top-ui-fleet: mesh-top's fleet tabs (crates/mesh-top src/ui_fleet.rs and ui.rs's
2 * "9 fleet"): Fleet (9), Jobs (0) and Pipes (-), drawn from meshd's views (`view fleet|jobs|pipes`,
3 * the same records as http /fleet, /jobs, /pipes), and the fleet from the snapshots alone while
4 * the view is not fetched yet. Each degrades by dropping panes; a tiny terminal keeps a one-line
5 * summary. */
6#ifndef MESH_TOP_UI_FLEET_H
7#define MESH_TOP_UI_FLEET_H
89#include "mesh/top_ui_kit.h"
1011/* A bar of w cells for 0..1 (eighths). */
12const char *mt_bar(mt_frame *f, double frac, size_t w);
13/* At most w characters (… when cut). */
14const char *mt_cut(mt_frame *f, const char *s, size_t w);
15void mt_draw_fleet(mt_frame *f, tui_rect area, const mt_app *app, mt_instant now);
16void mt_draw_jobs(mt_frame *f, tui_rect area, const mt_app *app, mt_instant now);
17void mt_draw_pipes(mt_frame *f, tui_rect area, const mt_app *app, mt_instant now);
18/* The fleet from the snapshots alone: every machine's view of the leader and the desired state,
19 * the member table, the lockstep group and the jobs. */
20void mt_draw_fleet_snap(mt_frame *f, tui_rect area, const mt_app *app);
2122#endif