Loading...
Searching...
No Matches
misc.h
Go to the documentation of this file.
#pragma once
#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
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);
void vty_out_rate_ctr_group2(struct vty *vty, const char *prefix,
struct rate_ctr_group *ctrg, bool skip_zero);
void vty_out_rate_ctr_group_fmt(struct vty *vty, const char *fmt,
struct rate_ctr_group *ctrg);
void vty_out_rate_ctr_group_fmt2(struct vty *vty, const char *fmt,
struct rate_ctr_group *ctrg, bool skip_zero);
void vty_out_stat_item_group(struct vty *vty, const char *prefix,
struct osmo_stat_item_group *statg);
void vty_out_stat_item_group2(struct vty *vty, const char *prefix,
struct osmo_stat_item_group *statg, bool skip_zero);
void vty_out_statistics_full(struct vty *vty, const char *prefix);
void vty_out_statistics_full2(struct vty *vty, const char *prefix, bool skip_zero);
void vty_out_statistics_partial(struct vty *vty, const char *prefix, int max_level);
void vty_out_statistics_partial2(struct vty *vty, const char *prefix, int max_level, bool skip_zero);
struct osmo_fsm;
struct osmo_fsm_inst;
void vty_out_fsm(struct vty *vty, struct osmo_fsm *fsm);
void vty_out_fsm2(struct vty *vty, const char *prefix, struct osmo_fsm *fsm);
void vty_out_fsm_inst(struct vty *vty, struct osmo_fsm_inst *fsmi);
void vty_out_fsm_inst2(struct vty *vty, const char *prefix, struct osmo_fsm_inst *fsmi);
void osmo_fsm_vty_add_cmds(void);
void osmo_talloc_vty_add_cmds(void);
int osmo_vty_write_config_file(const char *filename);
int osmo_vty_save_config_file(void);
osmo_vty_save_config_file
int osmo_vty_save_config_file(void)
Save the current state to the config file.
Definition command.c:4396
osmo_vty_write_config_file
int osmo_vty_write_config_file(const char *filename)
Write the current running config to a given file.
Definition command.c:4378
vty_out_rate_ctr_group_fmt
void vty_out_rate_ctr_group_fmt(struct vty *vty, const char *fmt, struct rate_ctr_group *ctrg)
Definition utils.c:234
vty_out_rate_ctr_group
void vty_out_rate_ctr_group(struct vty *vty, const char *prefix, struct rate_ctr_group *ctrg)
Definition utils.c:89
vty_out_rate_ctr_group2
void vty_out_rate_ctr_group2(struct vty *vty, const char *prefix, struct rate_ctr_group *ctrg, bool skip_zero)
print a rate counter group to given VTY
Definition utils.c:79
vty_out_rate_ctr_group_fmt2
void vty_out_rate_ctr_group_fmt2(struct vty *vty, const char *fmt, struct rate_ctr_group *ctrg, bool skip_zero)
print a rate counter group to given VTY, formatting the line for each counter according to a format s...
Definition utils.c:227
vty_out_stat_item_group2
void vty_out_stat_item_group2(struct vty *vty, const char *prefix, struct osmo_stat_item_group *statg, bool skip_zero)
print a stat item group to given VTY
Definition utils.c:288
vty_out_stat_item_group
void vty_out_stat_item_group(struct vty *vty, const char *prefix, struct osmo_stat_item_group *statg)
Definition utils.c:298
vty_cmd_string_from_valstr
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:372
vty_out_statistics_partial2
void vty_out_statistics_partial2(struct vty *vty, const char *prefix, int max_level, bool skip_zero)
Definition utils.c:346
vty_out_statistics_full
void vty_out_statistics_full(struct vty *vty, const char *prefix)
Definition utils.c:366
vty_out_statistics_partial
void vty_out_statistics_partial(struct vty *vty, const char *prefix, int max_level)
Definition utils.c:356
vty_out_statistics_full2
void vty_out_statistics_full2(struct vty *vty, const char *prefix, bool skip_zero)
Definition utils.c:361
vty_out_fsm2
void vty_out_fsm2(struct vty *vty, const char *prefix, struct osmo_fsm *fsm)
Print information about a FSM [class] to the given VTY.
Definition fsm_vty.c:53
osmo_fsm_vty_add_cmds
void osmo_fsm_vty_add_cmds(void)
Install VTY commands for FSM introspection This installs a couple of VTY commands for introspection o...
Definition fsm_vty.c:240
vty_out_fsm_inst2
void vty_out_fsm_inst2(struct vty *vty, const char *prefix, struct osmo_fsm_inst *fsmi)
Print a FSM instance to the given VTY.
Definition fsm_vty.c:93
vty_out_fsm
void vty_out_fsm(struct vty *vty, struct osmo_fsm *fsm)
Print information about a FSM [class] to the given VTY.
Definition fsm_vty.c:83
vty_out_fsm_inst
void vty_out_fsm_inst(struct vty *vty, struct osmo_fsm_inst *fsmi)
Print a FSM instance to the given VTY.
Definition fsm_vty.c:121
osmo_talloc_vty_add_cmds
void osmo_talloc_vty_add_cmds(void)
Install VTY commands for talloc context introspection.
Definition talloc_ctx_vty.c:247
rate_ctr.h
stat_item.h
osmo_fsm_inst
osmo_fsm_inst::fsm
struct osmo_fsm * fsm
osmo_fsm
osmo_stat_item_group
rate_ctr_group
value_string
vty
Internal representation of a single VTY.
Definition vty.h:60
utils.h
vty.h