aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorStefan Sperling <ssperling@sysmocom.de>2018-05-24 16:42:43 +0200
committerStefan Sperling <ssperling@sysmocom.de>2018-05-24 18:04:56 +0200
commit97d3da2c591984b47839fd1d9a5cba24a7f05fa1 (patch)
treefdc8b5b7becdee47f16a402217dc92f07fa36a9b /include
parentdfd85137cf18243240d5f3c4300ca5b33f26e362 (diff)
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
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/vty/misc.h2
1 files changed, 2 insertions, 0 deletions
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);