From 334c8e178008f3184382aae6c2cd13b9652169e2 Mon Sep 17 00:00:00 2001 From: Daniel Willmann Date: Fri, 8 Apr 2011 10:46:19 +0200 Subject: Add a function to search for a counter by name --- include/osmocom/core/statistics.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/osmocom/core') diff --git a/include/osmocom/core/statistics.h b/include/osmocom/core/statistics.h index 1d56054a..2c159657 100644 --- a/include/osmocom/core/statistics.h +++ b/include/osmocom/core/statistics.h @@ -28,4 +28,6 @@ void counter_free(struct counter *ctr); int counters_for_each(int (*handle_counter)(struct counter *, void *), void *data); +struct counter *counter_get_by_name(const char *name); + #endif /* _STATISTICS_H */ -- cgit v1.2.3