From fab0ae9b43ad5c44d3d0402424b152a531b609c4 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 17 Aug 2012 12:17:38 +0200 Subject: 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'. --- include/osmocom/vty/misc.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include') 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 #include +#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); -- cgit v1.2.3