\doxysection{sccp\+\_\+user.\+h}
\label{sccp__user_8h_source}\index{src/sccp\_user.h@{src/sccp\_user.h}}
\textbf{ Go to the documentation of this file.}
\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{preprocessor}{\#pragma\ once}}
\DoxyCodeLine{00002\ \textcolor{preprocessor}{\#include\ <inttypes.h>}}
\DoxyCodeLine{00003\ }
\DoxyCodeLine{00004\ \textcolor{preprocessor}{\#include\ <osmocom/core/fsm.h>}}
\DoxyCodeLine{00005\ \textcolor{preprocessor}{\#include\ <osmocom/core/prim.h>}}
\DoxyCodeLine{00006\ \textcolor{preprocessor}{\#include\ <osmocom/core/linuxlist.h>}}
\DoxyCodeLine{00007\ }
\DoxyCodeLine{00008\ \textcolor{preprocessor}{\#include\ <osmocom/sigtran/sccp\_sap.h>}}
\DoxyCodeLine{00009\ }
\DoxyCodeLine{00010\ \textcolor{keyword}{struct\ }osmo\_sccp\_instance;}
\DoxyCodeLine{00011\ }
\DoxyCodeLine{00012\ \textcolor{keyword}{struct\ }osmo\_sccp\_user\ \{}
\DoxyCodeLine{00014\ \ \ \ \ \ \ \ \ \textcolor{keyword}{struct\ }llist\_head\ list;}
\DoxyCodeLine{00016\ \ \ \ \ \ \ \ \ \textcolor{keyword}{struct\ }osmo\_sccp\_instance\ *inst;}
\DoxyCodeLine{00018\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{char}\ *name;}
\DoxyCodeLine{00019\ }
\DoxyCodeLine{00021\ \ \ \ \ \ \ \ \ uint16\_t\ ssn;}
\DoxyCodeLine{00022\ \ \ \ \ \ \ \ \ uint32\_t\ pc;}
\DoxyCodeLine{00023\ }
\DoxyCodeLine{00024\ \ \ \ \ \ \ \ \ \textcolor{comment}{/*\ set\ if\ we\ are\ a\ server\ */}}
\DoxyCodeLine{00025\ \ \ \ \ \ \ \ \ \textcolor{keyword}{struct\ }llist\_head\ links;}
\DoxyCodeLine{00026\ }
\DoxyCodeLine{00027\ \ \ \ \ \ \ \ \ \textcolor{comment}{/*\ user\ call-\/back\ function\ in\ case\ of\ incoming\ primitives\ */}}
\DoxyCodeLine{00028\ \ \ \ \ \ \ \ \ osmo\_prim\_cb\ prim\_cb;}
\DoxyCodeLine{00029\ \ \ \ \ \ \ \ \ \textcolor{keywordtype}{void}\ *priv;}
\DoxyCodeLine{00030\ }
\DoxyCodeLine{00031\ \ \ \ \ \ \ \ \ \textcolor{comment}{/*\ Application\ Server\ FSM\ Instance\ */}}
\DoxyCodeLine{00032\ \ \ \ \ \ \ \ \ \textcolor{keyword}{struct\ }osmo\_fsm\_inst\ *as\_fi;}
\DoxyCodeLine{00033\ \};}
\DoxyCodeLine{00034\ }
\DoxyCodeLine{00035\ \textcolor{keyword}{struct\ }osmo\_sccp\_user\ *sccp\_user\_alloc(\textcolor{keyword}{struct}\ osmo\_sccp\_instance\ *inst,\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *name,}
\DoxyCodeLine{00036\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ osmo\_prim\_cb\ prim\_cb,\ uint16\_t\ ssn,\ uint32\_t\ pc);}
\DoxyCodeLine{00037\ \textcolor{keywordtype}{void}\ sccp\_user\_free(\textcolor{keyword}{struct}\ osmo\_sccp\_user\ *scu);}
\DoxyCodeLine{00038\ }
\DoxyCodeLine{00039\ \textcolor{keywordtype}{int}\ sccp\_user\_prim\_up(\textcolor{keyword}{struct}\ osmo\_sccp\_user\ *scut,\ \textcolor{keyword}{struct}\ osmo\_scu\_prim\ *prim);}
\DoxyCodeLine{00040\ }
\DoxyCodeLine{00041\ \textcolor{preprocessor}{\#define\ \_LOGPSCU(scu,\ subsys,\ level,\ fmt,\ args\ ...)\ \(\backslash\)}}
\DoxyCodeLine{00042\ \textcolor{preprocessor}{\ \ \ \ \ \ \ \ \_LOGPSCI((scu)-\/>inst,\ subsys,\ level,\ "{}SCU(\%s)\ "{}\ fmt,\ osmo\_sccp\_user\_name(scu),\ \#\#\ args)}}
\DoxyCodeLine{00043\ \textcolor{preprocessor}{\#define\ LOGPSCU(scu,\ level,\ fmt,\ args\ ...)\ \(\backslash\)}}
\DoxyCodeLine{00044\ \textcolor{preprocessor}{\ \ \ \ \ \ \ \ \_LOGPSCU(scu,\ DLSCCP,\ level,\ fmt,\ \#\#\ args)}}

\end{DoxyCode}
