summaryrefslogtreecommitdiffstats
path: root/include/osmocom
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-10-06 15:21:56 +0200
committerJacob Erlbeck <jerlbeck@sysmocom.de>2015-10-28 23:51:12 +0100
commit738d9e22108a8e472458fad42509fd8d96994d6c (patch)
tree6f2a984f90708d4093a1adf298b3b8dba12e80ab /include/osmocom
parent9732cb4a92a883c7e9f7dcd928b6e22976a797ca (diff)
stats: Add vty_out_stat_item_group
This functions dumps a whole stat item group to the VTY. Sponsored-by: On-Waves ehf
Diffstat (limited to 'include/osmocom')
-rw-r--r--include/osmocom/vty/misc.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/osmocom/vty/misc.h b/include/osmocom/vty/misc.h
index db552e77..ad878db2 100644
--- a/include/osmocom/vty/misc.h
+++ b/include/osmocom/vty/misc.h
@@ -2,6 +2,7 @@
#include <osmocom/vty/vty.h>
#include <osmocom/core/rate_ctr.h>
+#include <osmocom/core/stat_item.h>
#include <osmocom/core/utils.h>
#define VTY_DO_LOWER 1
@@ -10,7 +11,10 @@ char *vty_cmd_string_from_valstr(void *ctx, const struct value_string *vals,
const char *end, int do_lower);
void vty_out_rate_ctr_group(struct vty *vty, const char *prefix,
- struct rate_ctr_group *ctrg);
+ struct rate_ctr_group *ctrg);
+
+void vty_out_stat_item_group(struct vty *vty, const char *prefix,
+ struct stat_item_group *statg);
int osmo_vty_write_config_file(const char *filename);
int osmo_vty_save_config_file(void);