\doxysection{src/ss7\+\_\+link.c File Reference}
\label{ss7__link_8c}\index{src/ss7\_link.c@{src/ss7\_link.c}}
{\ttfamily \#include $<$errno.\+h$>$}\newline
{\ttfamily \#include $<$osmocom/core/linuxlist.\+h$>$}\newline
{\ttfamily \#include $<$osmocom/core/logging.\+h$>$}\newline
{\ttfamily \#include $<$osmocom/sigtran/osmo\+\_\+ss7.\+h$>$}\newline
{\ttfamily \#include \char`\"{}ss7\+\_\+link.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}ss7\+\_\+linkset.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}ss7\+\_\+internal.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \textbf{ ss7\+\_\+link\+\_\+destroy} (struct \textbf{ osmo\+\_\+ss7\+\_\+link} $\ast$link)
\begin{DoxyCompactList}\small\item\em Destroy SS7 Link. \end{DoxyCompactList}\item 
struct \textbf{ osmo\+\_\+ss7\+\_\+link} $\ast$ \textbf{ ss7\+\_\+link\+\_\+find\+\_\+or\+\_\+create} (struct \textbf{ osmo\+\_\+ss7\+\_\+linkset} $\ast$lset, uint32\+\_\+t id)
\begin{DoxyCompactList}\small\item\em Find or create SS7 Link with given ID in given Linkset. \end{DoxyCompactList}\item 
bool \textbf{ ss7\+\_\+link\+\_\+is\+\_\+available} (const struct \textbf{ osmo\+\_\+ss7\+\_\+link} $\ast$link)
\end{DoxyCompactItemize}


\doxysubsection{Function Documentation}
\mbox{\label{ss7__link_8c_a00c5f8a453e283109d5097f675f7fc6e}} 
\index{ss7\_link.c@{ss7\_link.c}!ss7\_link\_destroy@{ss7\_link\_destroy}}
\index{ss7\_link\_destroy@{ss7\_link\_destroy}!ss7\_link.c@{ss7\_link.c}}
\doxysubsubsection{ss7\_link\_destroy()}
{\footnotesize\ttfamily void ss7\+\_\+link\+\_\+destroy (\begin{DoxyParamCaption}\item[{struct \textbf{ osmo\+\_\+ss7\+\_\+link} $\ast$}]{link }\end{DoxyParamCaption})}



Destroy SS7 Link. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em link} & SS7 Link to be destroyed \\
\hline
\end{DoxyParams}


References \textbf{ osmo\+\_\+ss7\+\_\+link\+::cfg}, \textbf{ osmo\+\_\+ss7\+\_\+linkset\+::cfg}, \textbf{ osmo\+\_\+ss7\+\_\+link\+::id}, \textbf{ osmo\+\_\+ss7\+\_\+linkset\+::inst}, \textbf{ osmo\+\_\+ss7\+\_\+linkset\+::links}, \textbf{ osmo\+\_\+ss7\+\_\+link\+::linkset}, \textbf{ LOGSS7}, \textbf{ osmo\+\_\+ss7\+\_\+linkset\+::name}, \textbf{ NULL}, and \textbf{ ss7\+\_\+initialized}.



Referenced by \textbf{ ss7\+\_\+linkset\+\_\+destroy()}.

\mbox{\label{ss7__link_8c_a87df3323b282acc0e562a64dffdd1027}} 
\index{ss7\_link.c@{ss7\_link.c}!ss7\_link\_find\_or\_create@{ss7\_link\_find\_or\_create}}
\index{ss7\_link\_find\_or\_create@{ss7\_link\_find\_or\_create}!ss7\_link.c@{ss7\_link.c}}
\doxysubsubsection{ss7\_link\_find\_or\_create()}
{\footnotesize\ttfamily struct \textbf{ osmo\+\_\+ss7\+\_\+link} $\ast$ ss7\+\_\+link\+\_\+find\+\_\+or\+\_\+create (\begin{DoxyParamCaption}\item[{struct \textbf{ osmo\+\_\+ss7\+\_\+linkset} $\ast$}]{lset,  }\item[{uint32\+\_\+t}]{id }\end{DoxyParamCaption})}



Find or create SS7 Link with given ID in given Linkset. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\texttt{ in}}  & {\em lset} & SS7 Linkset on which we operate \\
\hline
\mbox{\texttt{ in}}  & {\em id} & Link number within Linkset \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
pointer to SS7 Link on success; NULL on error 
\end{DoxyReturn}


References \textbf{ osmo\+\_\+ss7\+\_\+link\+::cfg}, \textbf{ osmo\+\_\+ss7\+\_\+linkset\+::cfg}, \textbf{ osmo\+\_\+ss7\+\_\+link\+::id}, \textbf{ osmo\+\_\+ss7\+\_\+linkset\+::inst}, \textbf{ osmo\+\_\+ss7\+\_\+linkset\+::links}, \textbf{ osmo\+\_\+ss7\+\_\+link\+::linkset}, \textbf{ LOGSS7}, \textbf{ osmo\+\_\+ss7\+\_\+linkset\+::name}, \textbf{ NULL}, and \textbf{ ss7\+\_\+initialized}.

\mbox{\label{ss7__link_8c_a8f78d83af1b43a0fb980a4af7577f451}} 
\index{ss7\_link.c@{ss7\_link.c}!ss7\_link\_is\_available@{ss7\_link\_is\_available}}
\index{ss7\_link\_is\_available@{ss7\_link\_is\_available}!ss7\_link.c@{ss7\_link.c}}
\doxysubsubsection{ss7\_link\_is\_available()}
{\footnotesize\ttfamily bool ss7\+\_\+link\+\_\+is\+\_\+available (\begin{DoxyParamCaption}\item[{const struct \textbf{ osmo\+\_\+ss7\+\_\+link} $\ast$}]{link }\end{DoxyParamCaption})}



References \textbf{ osmo\+\_\+ss7\+\_\+link\+::adm\+\_\+state}, \textbf{ osmo\+\_\+ss7\+\_\+link\+::cfg}, and \textbf{ OSMO\+\_\+\+SS7\+\_\+\+LS\+\_\+\+ENABLED}.



Referenced by \textbf{ ss7\+\_\+linkset\+\_\+is\+\_\+available()}.

