aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2017-12-05 16:06:27 +0100
committerAlexander Couzens <lynxis@fe80.eu>2017-12-05 16:06:27 +0100
commit18ba26cfab4a07b8f45aeb7f28b4f8faabc6a2e7 (patch)
tree46b1c5557548cfe31288c1b9611c05d78b1edcab /include
parentad1797e359f95b3a9ff57bfc92217d4f4f96fc95 (diff)
counters: add osmo_counters_count() returns the amount of counters
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/core/counter.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/osmocom/core/counter.h b/include/osmocom/core/counter.h
index e692f7e6..259f1edf 100644
--- a/include/osmocom/core/counter.h
+++ b/include/osmocom/core/counter.h
@@ -44,6 +44,8 @@ void osmo_counter_free(struct osmo_counter *ctr);
int osmo_counters_for_each(int (*handle_counter)(struct osmo_counter *, void *), void *data);
+int osmo_counters_count();
+
struct osmo_counter *osmo_counter_get_by_name(const char *name);
int osmo_counter_difference(struct osmo_counter *ctr);