blob: e64aec799bb8960a886be0a1c76fecf8e790e54f [file] [log] [blame]
Pablo Neira Ayuso70004fc2011-03-28 19:24:21 +02001#ifndef OSMO_VTY_MISC_H
2#define OSMO_VTY_MISC_H
3
4#include <osmocom/vty/vty.h>
5#include <osmocom/core/rate_ctr.h>
6
Harald Weltefab0ae92012-08-17 12:17:38 +02007#define VTY_DO_LOWER 1
8char *vty_cmd_string_from_valstr(void *ctx, const struct value_string *vals,
9 const char *prefix, const char *sep,
10 const char *end, int do_lower);
11
Pablo Neira Ayuso70004fc2011-03-28 19:24:21 +020012void vty_out_rate_ctr_group(struct vty *vty, const char *prefix,
13 struct rate_ctr_group *ctrg);
14
Holger Hans Peter Freyther738f1332012-03-24 18:26:24 +010015int osmo_vty_write_config_file(const char *filename);
16int osmo_vty_save_config_file(void);
17
Pablo Neira Ayuso70004fc2011-03-28 19:24:21 +020018#endif