libosmovty 1.11.0.28-368d5.202505252026
Osmocom VTY library
Loading...
Searching...
No Matches
cmd_element Struct Reference

Structure of a command element. More...

#include <command.h>

Data Fields

const char * string
 Command specification by string.
 
int(* func )(struct cmd_element *, struct vty *, int, const char *[])
 
const char * doc
 Documentation of this command.
 
int daemon
 Daemon to which this command belong.
 
vector strvec
 Pointing out each description vector.
 
unsigned int cmdsize
 Command index count.
 
char * config
 Configuration string.
 
vector subconfig
 Sub configuration string.
 
unsigned char attr
 Command attributes (global)
 
unsigned int usrattr
 Command attributes (program specific)
 

Detailed Description

Structure of a command element.

Field Documentation

◆ attr

◆ cmdsize

unsigned int cmd_element::cmdsize

◆ config

char* cmd_element::config

Configuration string.

◆ daemon

int cmd_element::daemon

Daemon to which this command belong.

Referenced by cmd_execute_command_real(), and cmd_execute_command_strict().

◆ doc

const char* cmd_element::doc

◆ func

int(* cmd_element::func) (struct cmd_element *, struct vty *, int, const char *[])

◆ string

◆ strvec

◆ subconfig

vector cmd_element::subconfig

Sub configuration string.

◆ usrattr

unsigned int cmd_element::usrattr

Command attributes (program specific)

Referenced by cmd_flag_mask(), node_flag_mask(), and vty_dump_element().


The documentation for this struct was generated from the following file: