From 97d3da2c591984b47839fd1d9a5cba24a7f05fa1 Mon Sep 17 00:00:00 2001 From: Stefan Sperling Date: Thu, 24 May 2018 16:42:43 +0200 Subject: introduce vty_out_rate_ctr_group_fmt() function This new function can be used to print a rate counter group according to a format string. The intention is to generalize and replace manual printing of counters as implemented for the 'show statistics' VTY command of osmo-bsc. Related: OS#3245 Related: osmo-bsc commit 71d524c059c5a5c90e7cb77d8a2134c1c68b9cde (g#9217) Change-Id: Idb3ec12494ff6a3a05efcc8818e78d1baa6546bd --- include/osmocom/vty/misc.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/osmocom/vty/misc.h b/include/osmocom/vty/misc.h index 335558d8..2ad96508 100644 --- a/include/osmocom/vty/misc.h +++ b/include/osmocom/vty/misc.h @@ -14,6 +14,8 @@ char *vty_cmd_string_from_valstr(void *ctx, const struct value_string *vals, void vty_out_rate_ctr_group(struct vty *vty, const char *prefix, struct rate_ctr_group *ctrg); +void vty_out_rate_ctr_group_fmt(struct vty *vty, const char *fmt, + struct rate_ctr_group *ctrg); void vty_out_stat_item_group(struct vty *vty, const char *prefix, struct osmo_stat_item_group *statg); -- cgit v1.2.3