\doxysection{src/osmo\+\_\+ss7\+\_\+link.c File Reference} \label{osmo__ss7__link_8c}\index{src/osmo\_ss7\_link.c@{src/osmo\_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}\end{DoxyCompactItemize} \doxysubsection{Function Documentation} \mbox{\label{osmo__ss7__link_8c_a00c5f8a453e283109d5097f675f7fc6e}} \index{osmo\_ss7\_link.c@{osmo\_ss7\_link.c}!ss7\_link\_destroy@{ss7\_link\_destroy}} \index{ss7\_link\_destroy@{ss7\_link\_destroy}!osmo\_ss7\_link.c@{osmo\_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}, and \textbf{ ss7\+\_\+initialized}. Referenced by \textbf{ ss7\+\_\+linkset\+\_\+destroy()}. \mbox{\label{osmo__ss7__link_8c_a87df3323b282acc0e562a64dffdd1027}} \index{osmo\_ss7\_link.c@{osmo\_ss7\_link.c}!ss7\_link\_find\_or\_create@{ss7\_link\_find\_or\_create}} \index{ss7\_link\_find\_or\_create@{ss7\_link\_find\_or\_create}!osmo\_ss7\_link.c@{osmo\_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}, and \textbf{ ss7\+\_\+initialized}.