\doxysection{talloc.\+h}
\label{talloc_8h_source}\index{include/osmocom/core/talloc.h@{include/osmocom/core/talloc.h}}
\textbf{ Go to the documentation of this file.}
\begin{DoxyCode}{0}
\DoxyCodeLine{1 }
\DoxyCodeLine{2 \textcolor{preprocessor}{\#pragma once}}
\DoxyCodeLine{3 \textcolor{preprocessor}{\#include <talloc.h>}}
\DoxyCodeLine{4 }
\DoxyCodeLine{10 \textcolor{keyword}{struct }osmo\_talloc\_contexts \{}
\DoxyCodeLine{12         \textcolor{keywordtype}{void} *global;}
\DoxyCodeLine{19         \textcolor{keywordtype}{void} *select;}
\DoxyCodeLine{20 \};}
\DoxyCodeLine{21 }
\DoxyCodeLine{22 \textcolor{keyword}{extern} \_\_thread \textcolor{keyword}{struct }osmo\_talloc\_contexts *osmo\_ctx;}
\DoxyCodeLine{23 }
\DoxyCodeLine{24 \textcolor{comment}{/* short-\/hand \#defines for the osmo talloc contexts (OTC) that can be used to pass}}
\DoxyCodeLine{25 \textcolor{comment}{ * to the various \_c functions like msgb\_alloc\_c() */}}
\DoxyCodeLine{26 \textcolor{preprocessor}{\#define OTC\_GLOBAL (osmo\_ctx-\/>global)}}
\DoxyCodeLine{27 \textcolor{preprocessor}{\#define OTC\_SELECT (osmo\_ctx-\/>select)}}
\DoxyCodeLine{28 }
\DoxyCodeLine{29 \textcolor{keywordtype}{int} osmo\_ctx\_init(\textcolor{keyword}{const} \textcolor{keywordtype}{char} *\textcolor{keywordtype}{id});}

\end{DoxyCode}
