From ea71b439ec3c9ba1e39174972664be4c2f62a0ca Mon Sep 17 00:00:00 2001 From: Daniel Willmann Date: Tue, 14 Jul 2020 18:10:20 +0200 Subject: stat_item: Add function to reset stat items and groups Change-Id: I80fc0ea8865ec4efdcd4c982e69d863275fd9919 Related: SYS#4877 --- include/osmocom/core/stat_item.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/osmocom/core') 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); + /*! @} */ -- cgit v1.2.3