From 2d42ddeba37ed7e0d54bf10dc66b7549ad43bc5b Mon Sep 17 00:00:00 2001 From: Daniel Willmann Date: Fri, 8 Apr 2011 10:46:18 +0200 Subject: Add functions to search for rate counters by name * rate_ctr_get_group_by_name_idx, rate_ctr_get_by_name --- include/osmocom/core/rate_ctr.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/osmocom/core') diff --git a/include/osmocom/core/rate_ctr.h b/include/osmocom/core/rate_ctr.h index 9efc23db..63baa322 100644 --- a/include/osmocom/core/rate_ctr.h +++ b/include/osmocom/core/rate_ctr.h @@ -75,4 +75,6 @@ static inline void rate_ctr_inc(struct rate_ctr *ctr) /* Initialize the counter module */ int rate_ctr_init(void *tall_ctx); +struct rate_ctr_group *rate_ctr_get_group_by_name_idx(const char *name, const unsigned int idx); +struct rate_ctr *rate_ctr_get_by_name(const struct rate_ctr_group *ctrg, const char *name); #endif /* RATE_CTR_H */ -- cgit v1.2.3