libosmovty  0.9.6.311-c977
Osmocom VTY library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
fsm_vty.c File Reference

Osmocom FSM introspection via VTY. More...

#include <stdlib.h>
#include <string.h>
#include "../../config.h"
#include <osmocom/vty/command.h>
#include <osmocom/vty/buffer.h>
#include <osmocom/vty/vty.h>
#include <osmocom/vty/telnet_interface.h>
#include <osmocom/vty/misc.h>
#include <osmocom/core/fsm.h>
#include <osmocom/core/logging.h>
#include <osmocom/core/linuxlist.h>

Macros

#define SH_FSM_STR   SHOW_STR "Show information about finite state machines\n"
 
#define SH_FSMI_STR   SHOW_STR "Show information about finite state machine instances\n"
 

Functions

void vty_out_fsm (struct vty *vty, struct osmo_fsm *fsm)
 Print information about a FSM [class] to the given VTY. More...
 
void vty_out_fsm_inst (struct vty *vty, struct osmo_fsm_inst *fsmi)
 Print a FSM instance to the given VTY. More...
 
 DEFUN (show_fsms, show_fsms_cmd,"show fsm all", SH_FSM_STR"Display a list of all registered finite state machines\n")
 
 DEFUN (show_fsm, show_fsm_cmd,"show fsm NAME", SH_FSM_STR"Display information about a single named finite state machine\n")
 
 DEFUN (show_fsm_insts, show_fsm_insts_cmd,"show fsm-instances all", SH_FSMI_STR"Display a list of all FSM instances of all finite state machine")
 
 DEFUN (show_fsm_inst, show_fsm_inst_cmd,"show fsm-instances NAME", SH_FSMI_STR"Display a list of all FSM instances of the named finite state machine")
 
void osmo_fsm_vty_add_cmds (void)
 Install VTY commands for FSM introspection This installs a couple of VTY commands for introspection of FSM classes as well as FSM instances. More...
 

Variables

struct llist_head osmo_g_fsms
 

Detailed Description

Osmocom FSM introspection via VTY.