\doxysection{ss7\+\_\+instance.\+h} \label{ss7__instance_8h_source}\index{src/ss7\_instance.h@{src/ss7\_instance.h}} \textbf{ Go to the documentation of this file.} \begin{DoxyCode}{0} \DoxyCodeLine{1 \textcolor{preprocessor}{\#pragma once}} \DoxyCodeLine{2 } \DoxyCodeLine{3 \textcolor{preprocessor}{\#include }} \DoxyCodeLine{4 \textcolor{preprocessor}{\#include }} \DoxyCodeLine{5 \textcolor{preprocessor}{\#include }} \DoxyCodeLine{6 } \DoxyCodeLine{7 \textcolor{comment}{/***********************************************************************}} \DoxyCodeLine{8 \textcolor{comment}{ * SS7 Instances}} \DoxyCodeLine{9 \textcolor{comment}{ ***********************************************************************/}} \DoxyCodeLine{10 } \DoxyCodeLine{11 \textcolor{keyword}{struct }osmo\_ss7\_user;} \DoxyCodeLine{12 \textcolor{keyword}{struct }osmo\_ss7\_route\_table;} \DoxyCodeLine{13 \textcolor{keyword}{struct }osmo\_sccp\_instance;} \DoxyCodeLine{14 } \DoxyCodeLine{15 \textcolor{keyword}{struct }osmo\_ss7\_pc\_fmt \{} \DoxyCodeLine{16 \textcolor{keywordtype}{char} delimiter;} \DoxyCodeLine{17 uint8\_t component\_len[3];} \DoxyCodeLine{18 \};} \DoxyCodeLine{19 } \DoxyCodeLine{20 \textcolor{keyword}{struct }osmo\_ss7\_instance \{} \DoxyCodeLine{22 \textcolor{keyword}{struct }llist\_head list;} \DoxyCodeLine{24 \textcolor{keyword}{struct }llist\_head linksets;} \DoxyCodeLine{26 \textcolor{keyword}{struct }llist\_head as\_list;} \DoxyCodeLine{28 \textcolor{keyword}{struct }llist\_head asp\_list;} \DoxyCodeLine{30 \textcolor{keyword}{struct }llist\_head rtable\_list;} \DoxyCodeLine{32 \textcolor{keyword}{struct }llist\_head xua\_servers;} \DoxyCodeLine{33 \textcolor{comment}{/* array for faster lookup of user (indexed by service}} \DoxyCodeLine{34 \textcolor{comment}{ * indicator) */}} \DoxyCodeLine{35 \textcolor{keyword}{const} \textcolor{keyword}{struct }osmo\_ss7\_user *user[16];} \DoxyCodeLine{36 } \DoxyCodeLine{37 \textcolor{keyword}{struct }osmo\_ss7\_route\_table *rtable\_system;} \DoxyCodeLine{38 } \DoxyCodeLine{39 \textcolor{keyword}{struct }osmo\_sccp\_instance *sccp;} \DoxyCodeLine{40 } \DoxyCodeLine{41 \textcolor{keyword}{struct }\{} \DoxyCodeLine{42 uint32\_t id;} \DoxyCodeLine{43 \textcolor{keywordtype}{char} *name;} \DoxyCodeLine{44 \textcolor{keywordtype}{char} *description;} \DoxyCodeLine{45 uint32\_t primary\_pc;} \DoxyCodeLine{46 \textcolor{comment}{/* capability PCs */}} \DoxyCodeLine{47 uint8\_t network\_indicator;} \DoxyCodeLine{48 \textcolor{keyword}{struct }osmo\_ss7\_pc\_fmt pc\_fmt;} \DoxyCodeLine{49 \textcolor{keywordtype}{bool} permit\_dyn\_rkm\_alloc;} \DoxyCodeLine{50 \textcolor{keyword}{struct }llist\_head sccp\_address\_book;} \DoxyCodeLine{51 uint32\_t secondary\_pc;} \DoxyCodeLine{52 \} cfg;} \DoxyCodeLine{53 \};} \DoxyCodeLine{54 } \DoxyCodeLine{55 \textcolor{keyword}{struct }osmo\_ss7\_instance *} \DoxyCodeLine{56 ss7\_instance\_alloc(\textcolor{keywordtype}{void} *ctx, uint32\_t \textcolor{keywordtype}{id});} \DoxyCodeLine{57 } \DoxyCodeLine{58 uint32\_t ss7\_find\_free\_l\_rk\_id(\textcolor{keyword}{struct} osmo\_ss7\_instance *inst);} \DoxyCodeLine{59 } \DoxyCodeLine{60 \textcolor{preprocessor}{\#define \_LOGSS7(inst, subsys, level, fmt, args ...) \(\backslash\)}} \DoxyCodeLine{61 \textcolor{preprocessor}{ LOGP(subsys, level, "{}\%u: "{}} fmt, inst ? (inst)-\/>cfg.id : 0, \#\# args)} \DoxyCodeLine{62 \textcolor{preprocessor}{\#define LOGSS7(inst, level, fmt, args ...) \(\backslash\)}} \DoxyCodeLine{63 \textcolor{preprocessor}{ \_LOGSS7(inst, DLSS7, level, fmt, \#\# args)}} \end{DoxyCode}