\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{1 \textcolor{preprocessor}{\#ifndef \_IPA\_UNIT\_H\_}}
\DoxyCodeLine{2 \textcolor{preprocessor}{\#define \_IPA\_UNIT\_H\_}}
\DoxyCodeLine{3 }
\DoxyCodeLine{4 \textcolor{keyword}{struct }osmo\_ipa\_unit;}
\DoxyCodeLine{5 }
\DoxyCodeLine{6 \textcolor{keyword}{struct }osmo\_ipa\_unit *osmo\_ipa\_unit\_alloc(\textcolor{keywordtype}{size\_t} datalen);}
\DoxyCodeLine{7 \textcolor{keywordtype}{void} osmo\_ipa\_unit\_free(\textcolor{keyword}{struct} osmo\_ipa\_unit *unit);}
\DoxyCodeLine{8 }
\DoxyCodeLine{9 \textcolor{keywordtype}{void} *osmo\_ipa\_unit\_get\_data(\textcolor{keyword}{struct} osmo\_ipa\_unit *unit);}
\DoxyCodeLine{10 }
\DoxyCodeLine{11 \textcolor{keywordtype}{void} osmo\_ipa\_unit\_set\_site\_id(\textcolor{keyword}{struct} osmo\_ipa\_unit *unit, uint16\_t site\_id);}
\DoxyCodeLine{12 \textcolor{keywordtype}{void} osmo\_ipa\_unit\_set\_bts\_id(\textcolor{keyword}{struct} osmo\_ipa\_unit *unit, uint16\_t bts\_id);}
\DoxyCodeLine{13 \textcolor{keywordtype}{void} osmo\_ipa\_unit\_set\_trx\_id(\textcolor{keyword}{struct} osmo\_ipa\_unit *unit, uint16\_t trx\_id);}
\DoxyCodeLine{14 \textcolor{keywordtype}{void} osmo\_ipa\_unit\_set\_unit\_name(\textcolor{keyword}{struct} osmo\_ipa\_unit *unit, \textcolor{keyword}{const} \textcolor{keywordtype}{char} *name);}
\DoxyCodeLine{15 \textcolor{keywordtype}{void} osmo\_ipa\_unit\_set\_unit\_hwvers(\textcolor{keyword}{struct} osmo\_ipa\_unit *unit, \textcolor{keyword}{const} \textcolor{keywordtype}{char} *vers);}
\DoxyCodeLine{16 \textcolor{keywordtype}{void} osmo\_ipa\_unit\_set\_unit\_swvers(\textcolor{keyword}{struct} osmo\_ipa\_unit *unit, \textcolor{keyword}{const} \textcolor{keywordtype}{char} *vers);}
\DoxyCodeLine{17 \textcolor{keywordtype}{void} osmo\_ipa\_unit\_set\_unit\_mac\_addr(\textcolor{keyword}{struct} osmo\_ipa\_unit *unit, uint8\_t *addr);}
\DoxyCodeLine{18 \textcolor{keywordtype}{void} osmo\_ipa\_unit\_set\_unit\_loc1(\textcolor{keyword}{struct} osmo\_ipa\_unit *unit, \textcolor{keyword}{const} \textcolor{keywordtype}{char} *loc);}
\DoxyCodeLine{19 \textcolor{keywordtype}{void} osmo\_ipa\_unit\_set\_unit\_loc2(\textcolor{keyword}{struct} osmo\_ipa\_unit *unit, \textcolor{keyword}{const} \textcolor{keywordtype}{char} *loc);}
\DoxyCodeLine{20 \textcolor{keywordtype}{void} osmo\_ipa\_unit\_set\_unit\_serno(\textcolor{keyword}{struct} osmo\_ipa\_unit *unit, \textcolor{keyword}{const} \textcolor{keywordtype}{char} *serno);}
\DoxyCodeLine{21 }
\DoxyCodeLine{22 uint16\_t osmo\_ipa\_unit\_get\_site\_id(\textcolor{keyword}{struct} osmo\_ipa\_unit *unit);}
\DoxyCodeLine{23 uint16\_t osmo\_ipa\_unit\_get\_bts\_id(\textcolor{keyword}{struct} osmo\_ipa\_unit *unit);}
\DoxyCodeLine{24 uint16\_t osmo\_ipa\_unit\_get\_trx\_id(\textcolor{keyword}{struct} osmo\_ipa\_unit *unit);}
\DoxyCodeLine{25 \textcolor{keyword}{const} \textcolor{keywordtype}{char} *osmo\_ipa\_unit\_get\_unit\_name(\textcolor{keyword}{struct} osmo\_ipa\_unit *unit);}
\DoxyCodeLine{26 \textcolor{keyword}{const} \textcolor{keywordtype}{char} *osmo\_ipa\_unit\_get\_unit\_hwvers(\textcolor{keyword}{struct} osmo\_ipa\_unit *unit);}
\DoxyCodeLine{27 \textcolor{keyword}{const} \textcolor{keywordtype}{char} *osmo\_ipa\_unit\_get\_unit\_swvers(\textcolor{keyword}{struct} osmo\_ipa\_unit *unit);}
\DoxyCodeLine{28 uint8\_t *osmo\_ipa\_unit\_get\_unit\_mac\_addr(\textcolor{keyword}{struct} osmo\_ipa\_unit *unit);}
\DoxyCodeLine{29 \textcolor{keyword}{const} \textcolor{keywordtype}{char} *osmo\_ipa\_unit\_get\_unit\_loc1(\textcolor{keyword}{struct} osmo\_ipa\_unit *unit);}
\DoxyCodeLine{30 \textcolor{keyword}{const} \textcolor{keywordtype}{char} *osmo\_ipa\_unit\_get\_unit\_loc2(\textcolor{keyword}{struct} osmo\_ipa\_unit *unit);}
\DoxyCodeLine{31 \textcolor{keyword}{const} \textcolor{keywordtype}{char} *osmo\_ipa\_unit\_get\_unit\_serno(\textcolor{keyword}{struct} osmo\_ipa\_unit *unit);}
\DoxyCodeLine{32 }
\DoxyCodeLine{33 \textcolor{keywordtype}{int} osmo\_ipa\_unit\_snprintf(\textcolor{keywordtype}{char} *buf, \textcolor{keywordtype}{size\_t} size, \textcolor{keyword}{struct} osmo\_ipa\_unit *unit);}
\DoxyCodeLine{34 \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{35 \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{36 \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{37 \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{38 \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{39 \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{40 \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{41 \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{42 }
\DoxyCodeLine{43 \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{44 \textcolor{keywordtype}{void} osmo\_ipa\_unit\_add(\textcolor{keyword}{struct} llist\_head *list, \textcolor{keyword}{struct} osmo\_ipa\_unit *unit);}
\DoxyCodeLine{45 }
\DoxyCodeLine{46 \textcolor{preprocessor}{\#endif  }\textcolor{comment}{/* \_IPA\_UNIT\_H\_ */}\textcolor{preprocessor}{}}

\end{DoxyCode}
