aboutsummaryrefslogtreecommitdiffstats
path: root/include/osmocom/core
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2020-07-14 18:10:20 +0200
committerlaforge <laforge@osmocom.org>2020-07-17 16:41:31 +0000
commitea71b439ec3c9ba1e39174972664be4c2f62a0ca (patch)
tree61f515c1bb8c76452f12bed69643c44d0600aae6 /include/osmocom/core
parent26a9539e18295dcd84597cacbd736652075426e2 (diff)
stat_item: Add function to reset stat items and groups
Diffstat (limited to 'include/osmocom/core')
-rw-r--r--include/osmocom/core/stat_item.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/osmocom/core/stat_item.h b/include/osmocom/core/stat_item.h
index 806173ab..4710dba7 100644
--- a/include/osmocom/core/stat_item.h
+++ b/include/osmocom/core/stat_item.h
@@ -114,4 +114,8 @@ static inline int32_t osmo_stat_item_get_last(const struct osmo_stat_item *item)
{
return item->values[item->last_offs].value;
}
+
+void osmo_stat_item_reset(struct osmo_stat_item *item);
+void osmo_stat_item_group_reset(struct osmo_stat_item_group *statg);
+
/*! @} */