aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2021-03-26 14:33:21 +0100
committerOliver Smith <osmith@sysmocom.de>2021-04-06 11:27:34 +0200
commit43686dacd672f024d652f8592e83e0fa4b092b5d (patch)
tree8abc9de839e7b099405efd564b984d719c5a1c6e /src
parentd3490bc442ec68d300bbb96b419d25c25de0f01e (diff)
stat_item: add comment with struct overview
Diffstat (limited to 'src')
-rw-r--r--src/stat_item.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/stat_item.c b/src/stat_item.c
index 31298fd7..d4f3b727 100644
--- a/src/stat_item.c
+++ b/src/stat_item.c
@@ -52,6 +52,23 @@
*
*/
+/* Struct overview:
+ * Each osmo_stat_item is attached to an osmo_stat_item_group, which is
+ * attached to the global osmo_stat_item_groups list.
+ *
+ * osmo_stat_item_groups
+ * / \
+ * group1 group2
+ * / \
+ * item1 item2
+ * |
+ * values
+ * / \
+ * 1 2
+ * |-id |-id
+ * '-value '-value
+ */
+
#include <stdint.h>
#include <string.h>