diff options
author | Daniel Willmann <dwillmann@sysmocom.de> | 2020-07-14 18:10:20 +0200 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2020-07-17 16:41:31 +0000 |
commit | ea71b439ec3c9ba1e39174972664be4c2f62a0ca (patch) | |
tree | 61f515c1bb8c76452f12bed69643c44d0600aae6 /include/osmocom/core | |
parent | 26a9539e18295dcd84597cacbd736652075426e2 (diff) |
stat_item: Add function to reset stat items and groups
Change-Id: I80fc0ea8865ec4efdcd4c982e69d863275fd9919
Related: SYS#4877
Diffstat (limited to 'include/osmocom/core')
-rw-r--r-- | include/osmocom/core/stat_item.h | 4 |
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); + /*! @} */ |