Change in libosmocore[master]: stat_item: add comment with struct overview

osmith gerrit-no-reply at lists.osmocom.org
Tue Apr 6 14:09:22 UTC 2021


osmith has submitted this change. ( https://gerrit.osmocom.org/c/libosmocore/+/23507 )

Change subject: stat_item: add comment with struct overview
......................................................................

stat_item: add comment with struct overview

Related: OS#5088
Change-Id: Ic63a5884da778938197c658c5f478c23a85a4587
---
M src/stat_item.c
1 file changed, 17 insertions(+), 0 deletions(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved
  daniel: Looks good to me, but someone else must approve



diff --git a/src/stat_item.c b/src/stat_item.c
index 31298fd..d4f3b72 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>
 

-- 
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/23507
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Ic63a5884da778938197c658c5f478c23a85a4587
Gerrit-Change-Number: 23507
Gerrit-PatchSet: 2
Gerrit-Owner: osmith <osmith at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: osmith <osmith at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210406/e77118e8/attachment.htm>


More information about the gerrit-log mailing list