\doxysection{ctrl\+\_\+cmd\+\_\+element Struct Reference}
\label{structctrl__cmd__element}\index{ctrl\_cmd\_element@{ctrl\_cmd\_element}}


Implementation of a given CTRL command.  




{\ttfamily \#include $<$control\+\_\+cmd.\+h$>$}

\doxysubsection*{Data Fields}
\begin{DoxyCompactItemize}
\item 
const char $\ast$ \textbf{ name}
\begin{DoxyCompactList}\small\item\em textual name/id of the CTRL command \end{DoxyCompactList}\item 
struct \textbf{ ctrl\+\_\+cmd\+\_\+struct} \textbf{ strcmd}
\item 
int($\ast$ \textbf{ set} )(struct \textbf{ ctrl\+\_\+cmd} $\ast$cmd, void $\ast$\textbf{ data})
\begin{DoxyCompactList}\small\item\em call-\/back function implementing the SET operation \end{DoxyCompactList}\item 
int($\ast$ \textbf{ get} )(struct \textbf{ ctrl\+\_\+cmd} $\ast$cmd, void $\ast$\textbf{ data})
\begin{DoxyCompactList}\small\item\em call-\/back function implementing the GET operation \end{DoxyCompactList}\item 
int($\ast$ \textbf{ verify} )(struct \textbf{ ctrl\+\_\+cmd} $\ast$cmd, const char $\ast$value, void $\ast$\textbf{ data})
\begin{DoxyCompactList}\small\item\em call-\/back function to validate a value; called before SET \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Implementation of a given CTRL command. 

This is what a program registers using \textbackslash{}r ctrl\+\_\+cmd\+\_\+install in order to implement a given control variable. 

\doxysubsection{Field Documentation}
\mbox{\label{structctrl__cmd__element_a5c8303fc4d5923f8c7b1476d9932725f}} 
\index{ctrl\_cmd\_element@{ctrl\_cmd\_element}!get@{get}}
\index{get@{get}!ctrl\_cmd\_element@{ctrl\_cmd\_element}}
\doxysubsubsection{get}
{\footnotesize\ttfamily int($\ast$ ctrl\+\_\+cmd\+\_\+element\+::get) (struct \textbf{ ctrl\+\_\+cmd} $\ast$cmd, void $\ast$\textbf{ data})}



call-\/back function implementing the GET operation 



Referenced by \textbf{ ctrl\+\_\+cmd\+\_\+exec()}.

\mbox{\label{structctrl__cmd__element_a46735b67b6fd5f143bfcc9a2d1bb6221}} 
\index{ctrl\_cmd\_element@{ctrl\_cmd\_element}!name@{name}}
\index{name@{name}!ctrl\_cmd\_element@{ctrl\_cmd\_element}}
\doxysubsubsection{name}
{\footnotesize\ttfamily const char$\ast$ ctrl\+\_\+cmd\+\_\+element\+::name}



textual name/id of the CTRL command 



Referenced by \textbf{ ctrl\+\_\+cmd\+\_\+install()}.

\mbox{\label{structctrl__cmd__element_a15ff26e609a25378d43e40ba0a1ab918}} 
\index{ctrl\_cmd\_element@{ctrl\_cmd\_element}!set@{set}}
\index{set@{set}!ctrl\_cmd\_element@{ctrl\_cmd\_element}}
\doxysubsubsection{set}
{\footnotesize\ttfamily int($\ast$ ctrl\+\_\+cmd\+\_\+element\+::set) (struct \textbf{ ctrl\+\_\+cmd} $\ast$cmd, void $\ast$\textbf{ data})}



call-\/back function implementing the SET operation 



Referenced by \textbf{ ctrl\+\_\+cmd\+\_\+exec()}.

\mbox{\label{structctrl__cmd__element_a1ddbd944b534f06dabaac92bd0478538}} 
\index{ctrl\_cmd\_element@{ctrl\_cmd\_element}!strcmd@{strcmd}}
\index{strcmd@{strcmd}!ctrl\_cmd\_element@{ctrl\_cmd\_element}}
\doxysubsubsection{strcmd}
{\footnotesize\ttfamily struct \textbf{ ctrl\+\_\+cmd\+\_\+struct} ctrl\+\_\+cmd\+\_\+element\+::strcmd}



Referenced by \textbf{ ctrl\+\_\+cmd\+\_\+get\+\_\+element\+\_\+match()}, and \textbf{ ctrl\+\_\+cmd\+\_\+install()}.

\mbox{\label{structctrl__cmd__element_ab3d96650b77e70edc57c7e95fc3a5a08}} 
\index{ctrl\_cmd\_element@{ctrl\_cmd\_element}!verify@{verify}}
\index{verify@{verify}!ctrl\_cmd\_element@{ctrl\_cmd\_element}}
\doxysubsubsection{verify}
{\footnotesize\ttfamily int($\ast$ ctrl\+\_\+cmd\+\_\+element\+::verify) (struct \textbf{ ctrl\+\_\+cmd} $\ast$cmd, const char $\ast$value, void $\ast$\textbf{ data})}



call-\/back function to validate a value; called before SET 



Referenced by \textbf{ ctrl\+\_\+cmd\+\_\+exec()}.



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