From 18ba26cfab4a07b8f45aeb7f28b4f8faabc6a2e7 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Tue, 5 Dec 2017 16:06:27 +0100 Subject: counters: add osmo_counters_count() returns the amount of counters Change-Id: I9068231d71876e06d27ee67a688d7fb611ac3a1b --- include/osmocom/core/counter.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/osmocom') 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); -- cgit v1.2.3