\doxysection{bssmap\+\_\+le.\+h}
\label{bssmap__le_8h_source}\index{include/osmocom/gsm/bssmap\_le.h@{include/osmocom/gsm/bssmap\_le.h}}
\textbf{ Go to the documentation of this file.}
\begin{DoxyCode}{0}
\DoxyCodeLine{1 }
\DoxyCodeLine{6 \textcolor{comment}{/*}}
\DoxyCodeLine{7 \textcolor{comment}{ * (C) 2020 by sysmocom -\/ s.f.m.c. GmbH <info@sysmocom.de>}}
\DoxyCodeLine{8 \textcolor{comment}{ * All Rights Reserved}}
\DoxyCodeLine{9 \textcolor{comment}{ *}}
\DoxyCodeLine{10 \textcolor{comment}{ * Author: Neels Hofmeyr <neels@hofmeyr.de>}}
\DoxyCodeLine{11 \textcolor{comment}{ *}}
\DoxyCodeLine{12 \textcolor{comment}{ * SPDX-\/License-\/Identifier: GPL-\/2.0+}}
\DoxyCodeLine{13 \textcolor{comment}{ *}}
\DoxyCodeLine{14 \textcolor{comment}{ * This program is free software; you can redistribute it and/or modify}}
\DoxyCodeLine{15 \textcolor{comment}{ * it under the terms of the GNU General Public License as published by}}
\DoxyCodeLine{16 \textcolor{comment}{ * the Free Software Foundation; either version 2 of the License, or}}
\DoxyCodeLine{17 \textcolor{comment}{ * (at your option) any later version.}}
\DoxyCodeLine{18 \textcolor{comment}{ *}}
\DoxyCodeLine{19 \textcolor{comment}{ * This program is distributed in the hope that it will be useful,}}
\DoxyCodeLine{20 \textcolor{comment}{ * but WITHOUT ANY WARRANTY; without even the implied warranty of}}
\DoxyCodeLine{21 \textcolor{comment}{ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the}}
\DoxyCodeLine{22 \textcolor{comment}{ * GNU General Public License for more details.}}
\DoxyCodeLine{23 \textcolor{comment}{ *}}
\DoxyCodeLine{24 \textcolor{comment}{ */}}
\DoxyCodeLine{25 \textcolor{preprocessor}{\#pragma once}}
\DoxyCodeLine{26 }
\DoxyCodeLine{27 \textcolor{preprocessor}{\#include <osmocom/gsm/protocol/gsm\_49\_031.h>}}
\DoxyCodeLine{28 }
\DoxyCodeLine{29 \textcolor{keyword}{struct }osmo\_bsslap\_err;}
\DoxyCodeLine{30 \textcolor{keyword}{struct }osmo\_gad\_err;}
\DoxyCodeLine{31 }
\DoxyCodeLine{32 \textcolor{keyword}{struct }osmo\_bssmap\_le\_err \{}
\DoxyCodeLine{33         \textcolor{keywordtype}{int} rc;}
\DoxyCodeLine{34         \textcolor{keyword}{enum} bssmap\_le\_msgt msg\_type;}
\DoxyCodeLine{35         \textcolor{keyword}{enum} bssmap\_le\_iei iei;}
\DoxyCodeLine{36         \textcolor{keyword}{enum} lcs\_cause cause;}
\DoxyCodeLine{37         \textcolor{keyword}{struct }osmo\_bsslap\_err *bsslap\_err;}
\DoxyCodeLine{38         \textcolor{keyword}{struct }osmo\_gad\_err *gad\_err;}
\DoxyCodeLine{39         \textcolor{keywordtype}{char} *logmsg;}
\DoxyCodeLine{40 \};}
\DoxyCodeLine{41 }
\DoxyCodeLine{42 \textcolor{keyword}{struct }osmo\_bssap\_le\_err \{}
\DoxyCodeLine{43         \textcolor{keywordtype}{int} rc;}
\DoxyCodeLine{44         \textcolor{keyword}{struct }osmo\_bssmap\_le\_err *bssmap\_le\_err;}
\DoxyCodeLine{45         \textcolor{keywordtype}{void} *dtap\_err;}
\DoxyCodeLine{46         \textcolor{keywordtype}{char} *logmsg;}
\DoxyCodeLine{47 \};}
\DoxyCodeLine{48 }
\DoxyCodeLine{49 \textcolor{keyword}{enum} bssmap\_le\_msgt osmo\_bssmap\_le\_msgt(\textcolor{keyword}{const} uint8\_t *data, uint8\_t len);}
\DoxyCodeLine{50 }
\DoxyCodeLine{51 \textcolor{keyword}{extern} \textcolor{keyword}{const} \textcolor{keyword}{struct }value\_string osmo\_bssmap\_le\_msgt\_names[];}
\DoxyCodeLine{52 \textcolor{keyword}{static} \textcolor{keyword}{inline} \textcolor{keyword}{const} \textcolor{keywordtype}{char} *osmo\_bssmap\_le\_msgt\_name(\textcolor{keyword}{enum} bssmap\_le\_msgt val)}
\DoxyCodeLine{53 \{ \textcolor{keywordflow}{return} get\_value\_string(osmo\_bssmap\_le\_msgt\_names, val); \}}
\DoxyCodeLine{54 }
\DoxyCodeLine{55 \textcolor{keyword}{extern} \textcolor{keyword}{const} \textcolor{keyword}{struct }value\_string osmo\_bssmap\_le\_iei\_names[];}
\DoxyCodeLine{56 \textcolor{keyword}{static} \textcolor{keyword}{inline} \textcolor{keyword}{const} \textcolor{keywordtype}{char} *osmo\_bssmap\_le\_iei\_name(\textcolor{keyword}{enum} bssmap\_le\_iei val)}
\DoxyCodeLine{57 \{ \textcolor{keywordflow}{return} get\_value\_string(osmo\_bssmap\_le\_iei\_names, val); \}}
\DoxyCodeLine{58 }
\DoxyCodeLine{59 \textcolor{keywordtype}{int} osmo\_lcs\_cause\_enc(\textcolor{keyword}{struct} msgb *msg, \textcolor{keyword}{const} \textcolor{keyword}{struct} lcs\_cause\_ie *lcs\_cause);}
\DoxyCodeLine{60 \textcolor{keywordtype}{int} osmo\_lcs\_cause\_dec(\textcolor{keyword}{struct} lcs\_cause\_ie *lcs\_cause,}
\DoxyCodeLine{61                        \textcolor{keyword}{enum} bssmap\_le\_msgt msgt, \textcolor{keyword}{enum} bssmap\_le\_iei iei,}
\DoxyCodeLine{62                        \textcolor{keyword}{struct} osmo\_bssmap\_le\_err **err, \textcolor{keywordtype}{void} *err\_ctx,}
\DoxyCodeLine{63                        \textcolor{keyword}{const} uint8\_t *data, uint8\_t len);}
\DoxyCodeLine{64 }
\DoxyCodeLine{65 \textcolor{keywordtype}{int} osmo\_bssap\_le\_pdu\_to\_str\_buf(\textcolor{keywordtype}{char} *buf, \textcolor{keywordtype}{size\_t} buflen, \textcolor{keyword}{const} \textcolor{keyword}{struct} bssap\_le\_pdu *bssap\_le);}
\DoxyCodeLine{66 \textcolor{keywordtype}{char} *osmo\_bssap\_le\_pdu\_to\_str\_c(\textcolor{keywordtype}{void} *ctx, \textcolor{keyword}{const} \textcolor{keyword}{struct} bssap\_le\_pdu *bssap\_le);}
\DoxyCodeLine{67 }
\DoxyCodeLine{68 \textcolor{keyword}{struct }msgb *osmo\_bssap\_le\_enc(\textcolor{keyword}{const} \textcolor{keyword}{struct} bssap\_le\_pdu *pdu);}
\DoxyCodeLine{69 \textcolor{keywordtype}{int} osmo\_bssap\_le\_dec(\textcolor{keyword}{struct} bssap\_le\_pdu *pdu, \textcolor{keyword}{struct} osmo\_bssap\_le\_err **err, \textcolor{keywordtype}{void} *err\_ctx, \textcolor{keyword}{struct} msgb *msg);}
\DoxyCodeLine{70 }
\DoxyCodeLine{71 uint8\_t osmo\_bssmap\_le\_ie\_enc\_location\_type(\textcolor{keyword}{struct} msgb *msg, \textcolor{keyword}{const} \textcolor{keyword}{struct} bssmap\_le\_location\_type *location\_type);}
\DoxyCodeLine{72 \textcolor{keywordtype}{int} osmo\_bssmap\_le\_ie\_dec\_location\_type(\textcolor{keyword}{struct} bssmap\_le\_location\_type *lt,}
\DoxyCodeLine{73                                         \textcolor{keyword}{enum} bssmap\_le\_msgt msgt, \textcolor{keyword}{enum} bssmap\_le\_iei iei,}
\DoxyCodeLine{74                                         \textcolor{keyword}{struct} osmo\_bssmap\_le\_err **err, \textcolor{keywordtype}{void} *err\_ctx,}
\DoxyCodeLine{75                                         \textcolor{keyword}{const} uint8\_t *elem, uint8\_t len);}
\DoxyCodeLine{76 }

\end{DoxyCode}
