libosmovty 0.9.6-23.20170220git32ee5af8.fc42
Osmocom VTY library
Loading...
Searching...
No Matches
misc.h
1#pragma once
2
3#include <osmocom/vty/vty.h>
4#include <osmocom/core/rate_ctr.h>
5#include <osmocom/core/stat_item.h>
6#include <osmocom/core/utils.h>
7
8#define VTY_DO_LOWER 1
9char *vty_cmd_string_from_valstr(void *ctx, const struct value_string *vals,
10 const char *prefix, const char *sep,
11 const char *end, int do_lower);
12
13void vty_out_rate_ctr_group(struct vty *vty, const char *prefix,
14 struct rate_ctr_group *ctrg);
15
16void vty_out_stat_item_group(struct vty *vty, const char *prefix,
17 struct osmo_stat_item_group *statg);
18
19void vty_out_statistics_full(struct vty *vty, const char *prefix);
20void vty_out_statistics_partial(struct vty *vty, const char *prefix,
21 int max_level);
22
23
24struct osmo_fsm;
25struct osmo_fsm_inst;
26void vty_out_fsm(struct vty *vty, struct osmo_fsm *fsm);
27void vty_out_fsm_inst(struct vty *vty, struct osmo_fsm_inst *fsmi);
28void osmo_fsm_vty_add_cmds(void);
29
30
31int osmo_vty_write_config_file(const char *filename);
int osmo_vty_save_config_file(void)
Save the current state to the config file.
Definition command.c:3435
int osmo_vty_write_config_file(const char *filename)
Write the current running config to a given file.
Definition command.c:3417
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)
Generate a VTY command string from value_string.
Definition utils.c:191
void vty_out_rate_ctr_group(struct vty *vty, const char *prefix, struct rate_ctr_group *ctrg)
print a rate counter group to given VTY
Definition utils.c:75
void vty_out_stat_item_group(struct vty *vty, const char *prefix, struct osmo_stat_item_group *statg)
print a stat item group to given VTY
Definition utils.c:107
Definition vty.h:50