aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/core/stat_item.h
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2021-05-31 13:39:07 +0200
committerpespin <pespin@sysmocom.de>2021-06-01 21:06:55 +0000
commit5fe3de5313167593b64bc3702be159a5afcef2f0 (patch)
tree7cfea00f54fae2beddb473a07b58da32014c5818 /include/osmocom/core/stat_item.h
parent20199da02d37a6d284915a27ec12641e79b8781c (diff)
stat,rate_ctr: Introduce new API to get counter at given index
Having this API and forcing apps to use it will allow easily adding new members to the group structure without having so much impact in users of this struct. Related: SYS#5456 Change-Id: Iebbf401f11e36645f8964d389460918eb9e0910e
Diffstat (limited to 'include/osmocom/core/stat_item.h')
-rw-r--r--include/osmocom/core/stat_item.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/osmocom/core/stat_item.h b/include/osmocom/core/stat_item.h
index 29e35ef6..3cace084 100644
--- a/include/osmocom/core/stat_item.h
+++ b/include/osmocom/core/stat_item.h
@@ -79,7 +79,7 @@ static inline void osmo_stat_item_group_udp_idx(
{
grp->idx = idx;
}
-
+struct osmo_stat_item *osmo_stat_item_group_get_item(struct osmo_stat_item_group *grp, unsigned int idx);
void osmo_stat_item_group_free(struct osmo_stat_item_group *statg);
void osmo_stat_item_inc(struct osmo_stat_item *item, int32_t value);