summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-08-17 12:17:38 +0200
committerHarald Welte <laforge@gnumonks.org>2012-08-20 18:43:09 +0200
commitfab0ae9b43ad5c44d3d0402424b152a531b609c4 (patch)
tree7f3a066f153168c243bb4a22fe281c8a8421cbbf /include
parent08b286277b1d1c16ce3a615c5de07cefcbd6acf6 (diff)
import vty_cmd_string_from_valstr() from osmo-bts
This function is able to generate a VTY help string based on an array of 'struct value_string'.
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/vty/misc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/osmocom/vty/misc.h b/include/osmocom/vty/misc.h
index 89234733..e64aec79 100644
--- a/include/osmocom/vty/misc.h
+++ b/include/osmocom/vty/misc.h
@@ -4,6 +4,11 @@
#include <osmocom/vty/vty.h>
#include <osmocom/core/rate_ctr.h>
+#define VTY_DO_LOWER 1
+char *vty_cmd_string_from_valstr(void *ctx, const struct value_string *vals,
+ const char *prefix, const char *sep,
+ const char *end, int do_lower);
+
void vty_out_rate_ctr_group(struct vty *vty, const char *prefix,
struct rate_ctr_group *ctrg);