aboutsummaryrefslogtreecommitdiff
path: root/data/plots.c
diff options
context:
space:
mode:
authorPaul Oliver <contact@pauloliver.dev>2026-05-04 23:33:08 +0200
committerPaul Oliver <contact@pauloliver.dev>2026-05-24 23:46:55 +0200
commit522e11c8086b7d8ab76b9be07c1861f35ed2327f (patch)
tree48c61dd69cf817fce674c073d051de8a01a7f0ad /data/plots.c
parent6cecf64dbb488949a67eb080bf27d06f51533f40 (diff)
Adds prototype for the data client UI
Diffstat (limited to 'data/plots.c')
-rw-r--r--data/plots.c35
1 files changed, 35 insertions, 0 deletions
diff --git a/data/plots.c b/data/plots.c
new file mode 100644
index 0000000..211346f
--- /dev/null
+++ b/data/plots.c
@@ -0,0 +1,35 @@
+enum PlotType {
+ PLOT_LINES,
+};
+
+struct PlotDef {
+ const char *name;
+ const char *table;
+ enum PlotType plot_type;
+ const char **cols;
+};
+
+struct PlotDef g_general_plots_def[] = {
+ { .name = "cycl", .table = "general", .plot_type = PLOT_LINES, .cols = (const char *[]){
+#define FOR_CORE(i) "cycl_" #i,
+ FOR_CORES
+#undef FOR_CORE
+ }},
+ { .name = "mall", .table = "general", .plot_type = PLOT_LINES, .cols = (const char *[]){
+#define FOR_CORE(i) "mall_" #i,
+ FOR_CORES
+#undef FOR_CORE
+ }},
+ { .name = "pnum", .table = "general", .plot_type = PLOT_LINES, .cols = (const char *[]){
+#define FOR_CORE(i) "pnum_" #i,
+ FOR_CORES
+#undef FOR_CORE
+ }},
+ { .name = "ppop", .table = "general", .plot_type = PLOT_LINES, .cols = (const char *[]){
+#define FOR_CORE(i) "pfst_" #i, "plst_" #i,
+ FOR_CORES
+#undef FOR_CORE
+ }},
+};
+
+size_t g_general_plots_count = sizeof(g_general_plots_def) / sizeof(struct PlotDef);