\doxysection{src/core/context.c File Reference}
\label{context_8c}\index{src/core/context.c@{src/core/context.c}}


talloc context handling.  


{\ttfamily \#include $<$string.\+h$>$}\newline
{\ttfamily \#include $<$errno.\+h$>$}\newline
{\ttfamily \#include \char`\"{}config.\+h\char`\"{}}\newline
{\ttfamily \#include $<$osmocom/core/talloc.\+h$>$}\newline
{\ttfamily \#include $<$osmocom/core/utils.\+h$>$}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \textbf{ osmo\+\_\+ctx\+\_\+init} (const char $\ast$id)
\item 
static \textbf{ \+\_\+\+\_\+attribute\+\_\+\+\_\+} ((constructor(101)))
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item 
\+\_\+\+\_\+thread struct \textbf{ osmo\+\_\+talloc\+\_\+contexts} $\ast$ \textbf{ osmo\+\_\+ctx}
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
talloc context handling. 

(C) 2019 by Harald Welte {\texttt{ laforge@gnumonks.\+org}} All Rights Reserved.

SPDX-\/\+License-\/\+Identifier\+: GPL-\/2.\+0+

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. 

\doxysubsection{Function Documentation}
\mbox{\label{context_8c_aaccfa584b67a141d9bde2002b9188845}} 
\index{context.c@{context.c}!\_\_attribute\_\_@{\_\_attribute\_\_}}
\index{\_\_attribute\_\_@{\_\_attribute\_\_}!context.c@{context.c}}
\doxysubsubsection{\_\_attribute\_\_()}
{\footnotesize\ttfamily static \+\_\+\+\_\+attribute\+\_\+\+\_\+ (\begin{DoxyParamCaption}\item[{(constructor(101))}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



References \textbf{ OSMO\+\_\+\+ASSERT}, and \textbf{ osmo\+\_\+ctx\+\_\+init()}.

\mbox{\label{context_8c_a0681c199afa71168cc7ff457fb403a5b}} 
\index{context.c@{context.c}!osmo\_ctx\_init@{osmo\_ctx\_init}}
\index{osmo\_ctx\_init@{osmo\_ctx\_init}!context.c@{context.c}}
\doxysubsubsection{osmo\_ctx\_init()}
{\footnotesize\ttfamily int osmo\+\_\+ctx\+\_\+init (\begin{DoxyParamCaption}\item[{const char $\ast$}]{id }\end{DoxyParamCaption})}



References \textbf{ osmo\+\_\+talloc\+\_\+contexts\+::global}, \textbf{ osmo\+\_\+ctx}, and \textbf{ osmo\+\_\+talloc\+\_\+contexts\+::select}.



Referenced by \textbf{ \+\_\+\+\_\+attribute\+\_\+\+\_\+()}.



\doxysubsection{Variable Documentation}
\mbox{\label{context_8c_a0e806d75c80e71a111b18314b6b919bf}} 
\index{context.c@{context.c}!osmo\_ctx@{osmo\_ctx}}
\index{osmo\_ctx@{osmo\_ctx}!context.c@{context.c}}
\doxysubsubsection{osmo\_ctx}
{\footnotesize\ttfamily \+\_\+\+\_\+thread struct \textbf{ osmo\+\_\+talloc\+\_\+contexts}$\ast$ osmo\+\_\+ctx}



Referenced by \textbf{ osmo\+\_\+ctx\+\_\+init()}.

