\doxysection{cmd\+\_\+element Struct Reference}
\label{structcmd__element}\index{cmd\_element@{cmd\_element}}


Structure of a command element.  




{\ttfamily \#include $<$command.\+h$>$}

\doxysubsection*{Data Fields}
\begin{DoxyCompactItemize}
\item 
const char $\ast$ \textbf{ string}
\begin{DoxyCompactList}\small\item\em Command specification by string. \end{DoxyCompactList}\item 
int($\ast$ \textbf{ func} )(struct \textbf{ cmd\+\_\+element} $\ast$, struct \textbf{ vty} $\ast$, int, const char $\ast$[$\,$])
\item 
const char $\ast$ \textbf{ doc}
\begin{DoxyCompactList}\small\item\em Documentation of this command. \end{DoxyCompactList}\item 
int \textbf{ daemon}
\begin{DoxyCompactList}\small\item\em Daemon to which this command belong. \end{DoxyCompactList}\item 
\textbf{ vector} \textbf{ strvec}
\begin{DoxyCompactList}\small\item\em Pointing out each description vector. \end{DoxyCompactList}\item 
unsigned int \textbf{ cmdsize}
\begin{DoxyCompactList}\small\item\em Command index count. \end{DoxyCompactList}\item 
char $\ast$ \textbf{ config}
\begin{DoxyCompactList}\small\item\em Configuration string. \end{DoxyCompactList}\item 
\textbf{ vector} \textbf{ subconfig}
\begin{DoxyCompactList}\small\item\em Sub configuration string. \end{DoxyCompactList}\item 
unsigned char \textbf{ attr}
\begin{DoxyCompactList}\small\item\em Command attributes (global) \end{DoxyCompactList}\item 
unsigned int \textbf{ usrattr}
\begin{DoxyCompactList}\small\item\em Command attributes (program specific) \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Structure of a command element. 

\doxysubsection{Field Documentation}
\mbox{\label{structcmd__element_a35f970b7a76f74e71354521e54c54e4b}} 
\index{cmd\_element@{cmd\_element}!attr@{attr}}
\index{attr@{attr}!cmd\_element@{cmd\_element}}
\doxysubsubsection{attr}
{\footnotesize\ttfamily unsigned char cmd\+\_\+element\+::attr}



Command attributes (global) 



Referenced by \textbf{ cmd\+\_\+describe\+\_\+command\+\_\+real()}, \textbf{ cmd\+\_\+flag\+\_\+mask()}, \textbf{ cmd\+\_\+gflag\+\_\+mask()}, \textbf{ g\+DEFUN()}, \textbf{ install\+\_\+lib\+\_\+element()}, \textbf{ install\+\_\+lib\+\_\+element\+\_\+ve()}, \textbf{ logging\+\_\+vty\+\_\+add\+\_\+deprecated\+\_\+subsys()}, \textbf{ node\+\_\+flag\+\_\+mask()}, \textbf{ vty\+\_\+dump\+\_\+element()}, and \textbf{ vty\+\_\+dump\+\_\+nodes()}.

\mbox{\label{structcmd__element_a9b56a8d2370a248b814679d369c3df04}} 
\index{cmd\_element@{cmd\_element}!cmdsize@{cmdsize}}
\index{cmdsize@{cmdsize}!cmd\_element@{cmd\_element}}
\doxysubsubsection{cmdsize}
{\footnotesize\ttfamily unsigned int cmd\+\_\+element\+::cmdsize}



Command index count. 



Referenced by \textbf{ cmd\+\_\+execute\+\_\+command\+\_\+real()}, \textbf{ cmd\+\_\+execute\+\_\+command\+\_\+strict()}, and \textbf{ install\+\_\+element()}.

\mbox{\label{structcmd__element_a9aab029750c434f8c158f3069ade993c}} 
\index{cmd\_element@{cmd\_element}!config@{config}}
\index{config@{config}!cmd\_element@{cmd\_element}}
\doxysubsubsection{config}
{\footnotesize\ttfamily char$\ast$ cmd\+\_\+element\+::config}



Configuration string. 

\mbox{\label{structcmd__element_ae42c9a4478f400fc54a157b52ea977b7}} 
\index{cmd\_element@{cmd\_element}!daemon@{daemon}}
\index{daemon@{daemon}!cmd\_element@{cmd\_element}}
\doxysubsubsection{daemon}
{\footnotesize\ttfamily int cmd\+\_\+element\+::daemon}



Daemon to which this command belong. 



Referenced by \textbf{ cmd\+\_\+execute\+\_\+command\+\_\+real()}, and \textbf{ cmd\+\_\+execute\+\_\+command\+\_\+strict()}.

\mbox{\label{structcmd__element_a9df8375f83b1b959904bee103df60a40}} 
\index{cmd\_element@{cmd\_element}!doc@{doc}}
\index{doc@{doc}!cmd\_element@{cmd\_element}}
\doxysubsubsection{doc}
{\footnotesize\ttfamily const char$\ast$ cmd\+\_\+element\+::doc}



Documentation of this command. 



Referenced by \textbf{ gen\+\_\+logging\+\_\+level\+\_\+cmd\+\_\+strs()}, \textbf{ gen\+\_\+vty\+\_\+logp\+\_\+cmd\+\_\+strs()}, \textbf{ install\+\_\+element()}, and \textbf{ logging\+\_\+vty\+\_\+add\+\_\+deprecated\+\_\+subsys()}.

\mbox{\label{structcmd__element_a7b68758c0b1582f09397f81ee74d6d58}} 
\index{cmd\_element@{cmd\_element}!func@{func}}
\index{func@{func}!cmd\_element@{cmd\_element}}
\doxysubsubsection{func}
{\footnotesize\ttfamily int($\ast$ cmd\+\_\+element\+::func) (struct \textbf{ cmd\+\_\+element} $\ast$, struct \textbf{ vty} $\ast$, int, const char $\ast$[$\,$])}



Referenced by \textbf{ cmd\+\_\+execute\+\_\+command\+\_\+real()}, \textbf{ cmd\+\_\+execute\+\_\+command\+\_\+strict()}, \textbf{ logging\+\_\+vty\+\_\+add\+\_\+deprecated\+\_\+subsys()}, and \textbf{ vty\+\_\+down\+\_\+level()}.

\mbox{\label{structcmd__element_a8c80d3a57bae0cb6d6f1d6f6bf2ba1a3}} 
\index{cmd\_element@{cmd\_element}!string@{string}}
\index{string@{string}!cmd\_element@{cmd\_element}}
\doxysubsubsection{string}
{\footnotesize\ttfamily const char$\ast$ cmd\+\_\+element\+::string}



Command specification by string. 



Referenced by \textbf{ check\+\_\+element\+\_\+exists()}, \textbf{ cmd\+\_\+desc\+\_\+str()}, \textbf{ cmd\+\_\+execute\+\_\+command\+\_\+real()}, \textbf{ cmd\+\_\+make\+\_\+strvec2()}, \textbf{ cmp\+\_\+node()}, \textbf{ g\+DEFUN()}, \textbf{ gen\+\_\+logging\+\_\+level\+\_\+cmd\+\_\+strs()}, \textbf{ gen\+\_\+vty\+\_\+logp\+\_\+cmd\+\_\+strs()}, \textbf{ install\+\_\+element()}, \textbf{ log\+\_\+deprecated\+\_\+func()}, \textbf{ logging\+\_\+vty\+\_\+add\+\_\+deprecated\+\_\+subsys()}, and \textbf{ vty\+\_\+dump\+\_\+element()}.

\mbox{\label{structcmd__element_a54736c6bc6f49d4b3fcf7cca280e69d6}} 
\index{cmd\_element@{cmd\_element}!strvec@{strvec}}
\index{strvec@{strvec}!cmd\_element@{cmd\_element}}
\doxysubsubsection{strvec}
{\footnotesize\ttfamily \textbf{ vector} cmd\+\_\+element\+::strvec}



Pointing out each description vector. 



Referenced by \textbf{ cmd\+\_\+complete\+\_\+command\+\_\+real()}, \textbf{ cmd\+\_\+describe\+\_\+command\+\_\+real()}, \textbf{ cmd\+\_\+execute\+\_\+command\+\_\+real()}, \textbf{ cmd\+\_\+execute\+\_\+command\+\_\+strict()}, \textbf{ cmd\+\_\+filter()}, \textbf{ cmd\+\_\+make\+\_\+descvec()}, \textbf{ cmd\+\_\+make\+\_\+strvec()}, \textbf{ cmd\+\_\+make\+\_\+strvec2()}, \textbf{ install\+\_\+element()}, \textbf{ is\+\_\+cmd\+\_\+ambiguous()}, \textbf{ sort\+\_\+node()}, and \textbf{ vty\+\_\+dump\+\_\+element()}.

\mbox{\label{structcmd__element_a5b4f3d6cad423ccac90f9d4909c0ea26}} 
\index{cmd\_element@{cmd\_element}!subconfig@{subconfig}}
\index{subconfig@{subconfig}!cmd\_element@{cmd\_element}}
\doxysubsubsection{subconfig}
{\footnotesize\ttfamily \textbf{ vector} cmd\+\_\+element\+::subconfig}



Sub configuration string. 

\mbox{\label{structcmd__element_a945ea99803b7bee14999fc73231ca188}} 
\index{cmd\_element@{cmd\_element}!usrattr@{usrattr}}
\index{usrattr@{usrattr}!cmd\_element@{cmd\_element}}
\doxysubsubsection{usrattr}
{\footnotesize\ttfamily unsigned int cmd\+\_\+element\+::usrattr}



Command attributes (program specific) 



Referenced by \textbf{ cmd\+\_\+flag\+\_\+mask()}, \textbf{ node\+\_\+flag\+\_\+mask()}, and \textbf{ vty\+\_\+dump\+\_\+element()}.



The documentation for this struct was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
include/osmocom/vty/\textbf{ command.\+h}\end{DoxyCompactItemize}
