\doxysection{bsslap.\+h}
\label{bsslap_8h_source}\index{include/osmocom/gsm/bsslap.h@{include/osmocom/gsm/bsslap.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\_48\_071.h>}}
\DoxyCodeLine{28 \textcolor{preprocessor}{\#include <osmocom/gsm/protocol/gsm\_49\_031.h>}}
\DoxyCodeLine{29 }
\DoxyCodeLine{30 \textcolor{keyword}{struct }msgb;}
\DoxyCodeLine{31 }
\DoxyCodeLine{32 \textcolor{keyword}{struct }osmo\_bsslap\_err \{}
\DoxyCodeLine{33         \textcolor{keywordtype}{int} rc;}
\DoxyCodeLine{34         \textcolor{keyword}{enum} bsslap\_msgt msg\_type;}
\DoxyCodeLine{35         \textcolor{keyword}{enum} bsslap\_iei iei;}
\DoxyCodeLine{36         \textcolor{keyword}{enum} lcs\_cause cause;}
\DoxyCodeLine{37         \textcolor{keywordtype}{char} *logmsg;}
\DoxyCodeLine{38 \};}
\DoxyCodeLine{39 }
\DoxyCodeLine{40 \textcolor{keyword}{extern} \textcolor{keyword}{const} \textcolor{keyword}{struct }value\_string osmo\_bsslap\_msgt\_names[];}
\DoxyCodeLine{41 \textcolor{keyword}{static} \textcolor{keyword}{inline} \textcolor{keyword}{const} \textcolor{keywordtype}{char} *osmo\_bsslap\_msgt\_name(\textcolor{keyword}{enum} bsslap\_msgt val)}
\DoxyCodeLine{42 \{ \textcolor{keywordflow}{return} get\_value\_string(osmo\_bsslap\_msgt\_names, val); \}}
\DoxyCodeLine{43 }
\DoxyCodeLine{44 \textcolor{keyword}{extern} \textcolor{keyword}{const} \textcolor{keyword}{struct }value\_string osmo\_bsslap\_iei\_names[];}
\DoxyCodeLine{45 \textcolor{keyword}{static} \textcolor{keyword}{inline} \textcolor{keyword}{const} \textcolor{keywordtype}{char} *osmo\_bsslap\_iei\_name(\textcolor{keyword}{enum} bsslap\_iei val)}
\DoxyCodeLine{46 \{ \textcolor{keywordflow}{return} get\_value\_string(osmo\_bsslap\_iei\_names, val); \}}
\DoxyCodeLine{47 }
\DoxyCodeLine{48 \textcolor{keywordtype}{int} osmo\_bsslap\_enc(\textcolor{keyword}{struct} msgb *msg, \textcolor{keyword}{const} \textcolor{keyword}{struct} bsslap\_pdu *pdu);}
\DoxyCodeLine{49 \textcolor{keywordtype}{int} osmo\_bsslap\_dec(\textcolor{keyword}{struct} bsslap\_pdu *pdu,}
\DoxyCodeLine{50                     \textcolor{keyword}{struct} osmo\_bsslap\_err **err, \textcolor{keywordtype}{void} *err\_ctx,}
\DoxyCodeLine{51                     \textcolor{keyword}{const} uint8\_t *data, \textcolor{keywordtype}{size\_t} len);}
\DoxyCodeLine{52 }

\end{DoxyCode}
