\doxysection{ipa\+\_\+unit.\+h}
\label{ipa__unit_8h_source}\index{include/osmocom/netif/ipa\_unit.h@{include/osmocom/netif/ipa\_unit.h}}

\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ \textcolor{preprocessor}{\#ifndef\ \_IPA\_UNIT\_H\_}}
\DoxyCodeLine{00002\ \textcolor{preprocessor}{\#define\ \_IPA\_UNIT\_H\_}}
\DoxyCodeLine{00003\ }
\DoxyCodeLine{00004\ \textcolor{keyword}{struct\ }osmo\_ipa\_unit;}
\DoxyCodeLine{00005\ }
\DoxyCodeLine{00006\ \textcolor{keyword}{struct\ }osmo\_ipa\_unit\ *osmo\_ipa\_unit\_alloc(\textcolor{keywordtype}{size\_t}\ datalen);}
\DoxyCodeLine{00007\ \textcolor{keywordtype}{void}\ osmo\_ipa\_unit\_free(\textcolor{keyword}{struct}\ osmo\_ipa\_unit\ *unit);}
\DoxyCodeLine{00008\ }
\DoxyCodeLine{00009\ \textcolor{keywordtype}{void}\ *osmo\_ipa\_unit\_get\_data(\textcolor{keyword}{struct}\ osmo\_ipa\_unit\ *unit);}
\DoxyCodeLine{00010\ }
\DoxyCodeLine{00011\ \textcolor{keywordtype}{void}\ osmo\_ipa\_unit\_set\_site\_id(\textcolor{keyword}{struct}\ osmo\_ipa\_unit\ *unit,\ uint16\_t\ site\_id);}
\DoxyCodeLine{00012\ \textcolor{keywordtype}{void}\ osmo\_ipa\_unit\_set\_bts\_id(\textcolor{keyword}{struct}\ osmo\_ipa\_unit\ *unit,\ uint16\_t\ bts\_id);}
\DoxyCodeLine{00013\ \textcolor{keywordtype}{void}\ osmo\_ipa\_unit\_set\_trx\_id(\textcolor{keyword}{struct}\ osmo\_ipa\_unit\ *unit,\ uint16\_t\ trx\_id);}
\DoxyCodeLine{00014\ \textcolor{keywordtype}{void}\ osmo\_ipa\_unit\_set\_unit\_name(\textcolor{keyword}{struct}\ osmo\_ipa\_unit\ *unit,\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *name);}
\DoxyCodeLine{00015\ \textcolor{keywordtype}{void}\ osmo\_ipa\_unit\_set\_unit\_hwvers(\textcolor{keyword}{struct}\ osmo\_ipa\_unit\ *unit,\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *vers);}
\DoxyCodeLine{00016\ \textcolor{keywordtype}{void}\ osmo\_ipa\_unit\_set\_unit\_swvers(\textcolor{keyword}{struct}\ osmo\_ipa\_unit\ *unit,\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *vers);}
\DoxyCodeLine{00017\ \textcolor{keywordtype}{void}\ osmo\_ipa\_unit\_set\_unit\_mac\_addr(\textcolor{keyword}{struct}\ osmo\_ipa\_unit\ *unit,\ uint8\_t\ *addr);}
\DoxyCodeLine{00018\ \textcolor{keywordtype}{void}\ osmo\_ipa\_unit\_set\_unit\_loc1(\textcolor{keyword}{struct}\ osmo\_ipa\_unit\ *unit,\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *loc);}
\DoxyCodeLine{00019\ \textcolor{keywordtype}{void}\ osmo\_ipa\_unit\_set\_unit\_loc2(\textcolor{keyword}{struct}\ osmo\_ipa\_unit\ *unit,\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *loc);}
\DoxyCodeLine{00020\ \textcolor{keywordtype}{void}\ osmo\_ipa\_unit\_set\_unit\_serno(\textcolor{keyword}{struct}\ osmo\_ipa\_unit\ *unit,\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *serno);}
\DoxyCodeLine{00021\ }
\DoxyCodeLine{00022\ uint16\_t\ osmo\_ipa\_unit\_get\_site\_id(\textcolor{keyword}{struct}\ osmo\_ipa\_unit\ *unit);}
\DoxyCodeLine{00023\ uint16\_t\ osmo\_ipa\_unit\_get\_bts\_id(\textcolor{keyword}{struct}\ osmo\_ipa\_unit\ *unit);}
\DoxyCodeLine{00024\ uint16\_t\ osmo\_ipa\_unit\_get\_trx\_id(\textcolor{keyword}{struct}\ osmo\_ipa\_unit\ *unit);}
\DoxyCodeLine{00025\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *osmo\_ipa\_unit\_get\_unit\_name(\textcolor{keyword}{struct}\ osmo\_ipa\_unit\ *unit);}
\DoxyCodeLine{00026\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *osmo\_ipa\_unit\_get\_unit\_hwvers(\textcolor{keyword}{struct}\ osmo\_ipa\_unit\ *unit);}
\DoxyCodeLine{00027\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *osmo\_ipa\_unit\_get\_unit\_swvers(\textcolor{keyword}{struct}\ osmo\_ipa\_unit\ *unit);}
\DoxyCodeLine{00028\ uint8\_t\ *osmo\_ipa\_unit\_get\_unit\_mac\_addr(\textcolor{keyword}{struct}\ osmo\_ipa\_unit\ *unit);}
\DoxyCodeLine{00029\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *osmo\_ipa\_unit\_get\_unit\_loc1(\textcolor{keyword}{struct}\ osmo\_ipa\_unit\ *unit);}
\DoxyCodeLine{00030\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *osmo\_ipa\_unit\_get\_unit\_loc2(\textcolor{keyword}{struct}\ osmo\_ipa\_unit\ *unit);}
\DoxyCodeLine{00031\ \textcolor{keyword}{const}\ \textcolor{keywordtype}{char}\ *osmo\_ipa\_unit\_get\_unit\_serno(\textcolor{keyword}{struct}\ osmo\_ipa\_unit\ *unit);}
\DoxyCodeLine{00032\ }
\DoxyCodeLine{00033\ \textcolor{keywordtype}{int}\ osmo\_ipa\_unit\_snprintf(\textcolor{keywordtype}{char}\ *buf,\ \textcolor{keywordtype}{size\_t}\ size,\ \textcolor{keyword}{struct}\ osmo\_ipa\_unit\ *unit);}
\DoxyCodeLine{00034\ \textcolor{keywordtype}{int}\ osmo\_ipa\_unit\_snprintf\_mac\_addr(\textcolor{keywordtype}{char}\ *buf,\ \textcolor{keywordtype}{size\_t}\ size,\ \textcolor{keyword}{struct}\ osmo\_ipa\_unit\ *unit);}
\DoxyCodeLine{00035\ \textcolor{keywordtype}{int}\ osmo\_ipa\_unit\_snprintf\_name(\textcolor{keywordtype}{char}\ *buf,\ \textcolor{keywordtype}{size\_t}\ size,\ \textcolor{keyword}{struct}\ osmo\_ipa\_unit\ *unit);}
\DoxyCodeLine{00036\ \textcolor{keywordtype}{int}\ osmo\_ipa\_unit\_snprintf\_loc1(\textcolor{keywordtype}{char}\ *buf,\ \textcolor{keywordtype}{size\_t}\ size,\ \textcolor{keyword}{struct}\ osmo\_ipa\_unit\ *unit);}
\DoxyCodeLine{00037\ \textcolor{keywordtype}{int}\ osmo\_ipa\_unit\_snprintf\_loc2(\textcolor{keywordtype}{char}\ *buf,\ \textcolor{keywordtype}{size\_t}\ size,\ \textcolor{keyword}{struct}\ osmo\_ipa\_unit\ *unit);}
\DoxyCodeLine{00038\ \textcolor{keywordtype}{int}\ osmo\_ipa\_unit\_snprintf\_hwvers(\textcolor{keywordtype}{char}\ *buf,\ \textcolor{keywordtype}{size\_t}\ size,\ \textcolor{keyword}{struct}\ osmo\_ipa\_unit\ *unit);}
\DoxyCodeLine{00039\ \textcolor{keywordtype}{int}\ osmo\_ipa\_unit\_snprintf\_swvers(\textcolor{keywordtype}{char}\ *buf,\ \textcolor{keywordtype}{size\_t}\ size,\ \textcolor{keyword}{struct}\ osmo\_ipa\_unit\ *unit);}
\DoxyCodeLine{00040\ \textcolor{keywordtype}{int}\ osmo\_ipa\_unit\_snprintf\_swvers(\textcolor{keywordtype}{char}\ *buf,\ \textcolor{keywordtype}{size\_t}\ size,\ \textcolor{keyword}{struct}\ osmo\_ipa\_unit\ *unit);}
\DoxyCodeLine{00041\ \textcolor{keywordtype}{int}\ osmo\_ipa\_unit\_snprintf\_serno(\textcolor{keywordtype}{char}\ *buf,\ \textcolor{keywordtype}{size\_t}\ size,\ \textcolor{keyword}{struct}\ osmo\_ipa\_unit\ *unit);}
\DoxyCodeLine{00042\ }
\DoxyCodeLine{00043\ \textcolor{keyword}{struct\ }osmo\_ipa\_unit\ *osmo\_ipa\_unit\_find(\textcolor{keyword}{struct}\ llist\_head\ *list,\ uint16\_t\ site\_id,\ uint16\_t\ bts\_id);}
\DoxyCodeLine{00044\ \textcolor{keywordtype}{void}\ osmo\_ipa\_unit\_add(\textcolor{keyword}{struct}\ llist\_head\ *list,\ \textcolor{keyword}{struct}\ osmo\_ipa\_unit\ *unit);}
\DoxyCodeLine{00045\ }
\DoxyCodeLine{00046\ \textcolor{preprocessor}{\#endif\ \ }\textcolor{comment}{/*\ \_IPA\_UNIT\_H\_\ */}\textcolor{preprocessor}{}}

\end{DoxyCode}
