summaryrefslogtreecommitdiffstats
path: root/include/osmocom/core
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2019-04-27 23:19:55 +0200
committerHarald Welte <laforge@gnumonks.org>2019-05-07 13:20:57 +0000
commitcc72cc45a49b13b0c5147a7af21c083e47ca73f5 (patch)
tree7223813047542b5e2a27011e99a12fe50be25efb /include/osmocom/core
parentaa98c481fa7888e2bcd9d5c9ae1993744ee47f33 (diff)
add osmo_stat_item_inc/osmo_stat_item_dec to set it relative
Change-Id: Id2462c4866bd22bc2338c9c8f69b775f88ae7511
Diffstat (limited to 'include/osmocom/core')
-rw-r--r--include/osmocom/core/stat_item.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/osmocom/core/stat_item.h b/include/osmocom/core/stat_item.h
index 260ffb1c..806173ab 100644
--- a/include/osmocom/core/stat_item.h
+++ b/include/osmocom/core/stat_item.h
@@ -79,6 +79,8 @@ static inline void osmo_stat_item_group_udp_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);
+void osmo_stat_item_dec(struct osmo_stat_item *item, int32_t value);
void osmo_stat_item_set(struct osmo_stat_item *item, int32_t value);
int osmo_stat_item_init(void *tall_ctx);